Go to file
nemunaire 1b1cb0929b Initial commit 2023-08-17 13:01:36 +02:00
LICENSE Initial commit 2023-08-17 13:01:36 +02:00
README.md Initial commit 2023-08-17 13:01:36 +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 Initial commit 2023-08-17 13:01:36 +02:00
go.mod Initial commit 2023-08-17 13:01:36 +02:00
go.sum Initial commit 2023-08-17 13:01:36 +02:00
parser.go Initial commit 2023-08-17 13:01:36 +02:00
render.go Initial commit 2023-08-17 13:01:36 +02:00

README.md

goldmark-inline-attributes

GoldMark inline attributes extension.

[Attention]{.underline} some text
<p><span class="underline">Attention</span> some 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)
}