Skip to content

nemunaire/goldmark-inline-attributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
}

About

This goldmark parser extension adds support for inline attributes in markdown, implements the pandoc bracketed_spans extension

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages