23 lines
307 B
Go
23 lines
307 B
Go
package attributes
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/yuin/goldmark"
|
|
)
|
|
|
|
func TestAttributes(t *testing.T) {
|
|
source := []byte(`
|
|
[This is *some text*]{.class key="val"} outside text
|
|
`)
|
|
|
|
var md = goldmark.New(Enable)
|
|
err := md.Convert(source, os.Stdout)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
}
|