Categorygithub.com/nemunaire/goldmark-inline-attributes
modulepackage
0.0.0-20230824135609-6883396a74e2
Repository: https://github.com/nemunaire/goldmark-inline-attributes.git
Documentation: pkg.go.dev

# README

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

# Functions

NewAttributesParser return a new InlineParser that parses inline attributes like '[txt]{.underline}' .

# Variables

Enable is a goldmark.Option with inline attributes support.
Extension is a goldmark.Extender with markdown inline attributes support.
Kind is the kind of hashtag AST nodes.

# Structs

No description provided by the author
Node is a parsed attributes node.