Go to file
nemunaire 6883396a74 Don't override normal links 2023-08-24 15:56:09 +02:00
LICENSE Initial commit 2023-08-17 13:01:36 +02:00
README.md Allow other inline block inside 2023-08-17 14:58:53 +02:00
ast.go Initial commit 2023-08-17 13:01:36 +02:00
extend.go Initial commit 2023-08-17 13:01:36 +02:00
extend_test.go Allow other inline block inside 2023-08-17 14:58:53 +02:00
go.mod Work with older go version 2023-08-17 15:10:50 +02:00
go.sum Initial commit 2023-08-17 13:01:36 +02:00
parser.go Don't override normal links 2023-08-24 15:56:09 +02:00
render.go Initial commit 2023-08-17 13:01:36 +02:00

README.md

goldmark-inline-attributes

GoldMark inline attributes extension.

This implements the bracketed_spans of pandoc.

[This is *some text*]{.class key="val"} outside text
<p><span class="class" key="val">This is <em>some text</em></span> outside text</p>
var md = goldmark.New(attributes.Enable)
var source = []byte("[Text]{#id .class1}\nother text")
err := md.Convert(source, os.Stdout)
if err != nil {
    log.Fatal(err)
}