Documentation
¶
Index ¶
- func CommentMarkdownToHTML(markdown string) string
- func ExtractDescription(content string, maxLength int) string
- func ExtractFirstImageURL(content string) string
- func ExtractSearchContent(content string) string
- func GetCommentVersion() uint32
- func GetParser() goldmark.Markdown
- func GetVersion() uint32
- func MarkdownToHTML(markdown string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentMarkdownToHTML ¶ added in v0.2.6
CommentMarkdownToHTML renders comment Markdown and normalizes links/images for public UGC.
func ExtractDescription ¶ added in v0.0.3
ExtractDescription extracts readable summary text from Markdown.
func ExtractFirstImageURL ¶ added in v0.2.10
ExtractFirstImageURL returns the first public image destination from Markdown.
func ExtractSearchContent ¶ added in v0.0.8
ExtractSearchContent extracts searchable text while preserving useful Markdown context.
func GetCommentVersion ¶ added in v0.2.6
func GetCommentVersion() uint32
func GetVersion ¶
func GetVersion() uint32
func MarkdownToHTML ¶
MarkdownToHTML renders Markdown to HTML with the shared server parser.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.