goldmark-inline-attributes/extend_test.go

23 lines
307 B
Go
Raw Permalink Normal View History

2023-08-17 11:01:36 +00:00
package attributes
import (
"log"
"os"
"testing"
"github.com/yuin/goldmark"
)
func TestAttributes(t *testing.T) {
source := []byte(`
2023-08-17 12:58:53 +00:00
[This is *some text*]{.class key="val"} outside text
2023-08-17 11:01:36 +00:00
`)
var md = goldmark.New(Enable)
err := md.Convert(source, os.Stdout)
if err != nil {
log.Fatal(err)
}
}