Skip to content

This goldmark parser extension adds support for block attributes in markdown

License

Notifications You must be signed in to change notification settings

mdigger/goldmark-attributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goldmark-attributes

GoDoc

GoldMark block attributes extension.

# Document {#main}

> Why, you may take the most gallant sailor, the most intrepid airman or the
> most audacious soldier, put them at a table together – what do you get? The
> sum of their fears.
{.epigraph}
<h1 id="main">Document</h1>
<blockquote class="epigraph"><p>Why, you may take the most gallant sailor, the
most intrepid airman or the most audacious soldier, put them at a table 
together – what do you get? The sum of their fears.</p>
</blockquote>
var md = goldmark.New(attributes.Enable)
var source = []byte("{#id .class1}\ntext")
err := md.Convert(source, os.Stdout)
if err != nil {
    log.Fatal(err)
}

About

This goldmark parser extension adds support for block attributes in markdown

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages