mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-02 13:22:40 +00:00
Move mention macro into a goldmark-parser/renderer
This commit is contained in:
@@ -67,7 +67,7 @@ func GetCredentials(
|
||||
"flag or be stored in configuration file",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
if baseURL == "" {
|
||||
baseURL = url.Scheme + "://" + url.Host
|
||||
}
|
||||
|
||||
@@ -186,8 +186,6 @@ func processFile(
|
||||
return nil
|
||||
}
|
||||
|
||||
macros = append(macros, stdlib.Macros...)
|
||||
|
||||
for _, macro := range macros {
|
||||
markdown, err = macro.Apply(markdown)
|
||||
if err != nil {
|
||||
|
||||
@@ -192,8 +192,8 @@ var Flags = []cli.Flag{
|
||||
|
||||
&cli.StringSliceFlag{
|
||||
Name: "features",
|
||||
Value: []string{"mermaid"},
|
||||
Usage: "Enables optional features. Current features: d2, mermaid, mkdocsadmonitions",
|
||||
Value: []string{"mermaid", "mention"},
|
||||
Usage: "Enables optional features. Current features: d2, mermaid, mention, mkdocsadmonitions",
|
||||
Sources: cli.NewValueSourceChain(cli.EnvVar("MARK_FEATURES"), altsrctoml.TOML("features", altsrc.NewStringPtrSourcer(&filename))),
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
|
||||
Reference in New Issue
Block a user