drafting up goldmark extensions
parent
dc04526e49
commit
a932fdefc9
@ -0,0 +1,23 @@
|
||||
package goldmark
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"regexp"
|
||||
|
||||
"github.com/yuin/goldmark"
|
||||
"github.com/yuin/goldmark/ast"
|
||||
"github.com/yuin/goldmark/parser"
|
||||
"github.com/yuin/goldmark/text"
|
||||
"github.com/yuin/goldmark/util"
|
||||
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
type ObsidianLinkExtension struct{}
|
||||
|
||||
func (ole *ObsidianLinkExtension) Extend(m goldmark.Markdown) {
|
||||
m.Parser().AddOptions(
|
||||
parser.WithBlockParsers(),
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue