Documentation
¶
Index ¶
- func ExtractDescription(content string, maxLength int) string
- func ExtractFirstImageURL(content string) string
- func ExtractImageURLs(content string) []string
- func ExtractPreview(content string, maxLength int) string
- func ExtractSearchContent(content string) string
- func GetParser() goldmark.Markdown
- func GetPostVersion() uint32
- func MarkdownToHTML(markdown string) string
- func PostMarkdownToHTML(markdown string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ExtractImageURLs ¶ added in v0.2.38
func ExtractPreview ¶ added in v0.2.52
ExtractPreview converts Markdown into compact readable text for notifications and activity lists.
func ExtractSearchContent ¶ added in v0.0.8
ExtractSearchContent extracts searchable text while preserving useful Markdown context.
func GetPostVersion ¶ added in v0.2.53
func GetPostVersion() uint32
func MarkdownToHTML ¶
MarkdownToHTML renders Markdown to HTML with the shared server parser.
func PostMarkdownToHTML ¶ added in v0.2.53
PostMarkdownToHTML renders public user content and applies UGC link/image policies.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.