Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProcessMD model.ProcessFunc = func(c *config.Config, in io.ReadCloser) *model.Result { if c.Verbose { fmt.Println("--> parsing Markdown...") } defer in.Close() contents := ParseMD(in, c) if c.Verbose { fmt.Println("--> parsed") fmt.Printf("%s\n", contents) } if c.TagWeights == nil { c.TagWeights = defaultTagWeights } if c.ExtraTagWeights != nil { for k, v := range c.ExtraTagWeights { c.TagWeights[k] = v } } tags, title := tagifyMD(contents, c) return &model.Result{ RawTags: tags, Meta: &model.Meta{ ContentType: config.Markdown, DocTitle: title, DocHash: fmt.Sprintf("%x", contents.hash()), Lang: c.Lang, }, } }
ProcessMD parses given Markdown document input into a slice of tags.
Functions ¶
This section is empty.
Types ¶
type MDContents ¶ added in v0.56.0
type MDContents struct {
// contains filtered or unexported fields
}
MDContents stores text from target tags.
func (*MDContents) String ¶ added in v0.56.0
func (cnt *MDContents) String() string
Click to show internal directories.
Click to hide internal directories.