Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Markdown = goldmark.New( goldmark.WithRendererOptions(html.WithUnsafe()), goldmark.WithExtensions(extension.GFM), goldmark.WithParserOptions(parser.WithAutoHeadingID()), )
Functions ¶
func FirstParagraphText ¶
FirstParagraphText returns the plain text of the first paragraph in a document. If there's anything but headings or html comments before such a paragraph, it returns an empty string.
func WordCountAtLeast ¶
Types ¶
type HeadingInfo ¶
func AssignHeaderIDs ¶
func AssignHeaderIDs(body []byte, doc ast.Node) ([]HeadingInfo, error)
Click to show internal directories.
Click to hide internal directories.