markdown2html

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentMarkdownToHTML added in v0.2.6

func CommentMarkdownToHTML(markdown string) string

CommentMarkdownToHTML renders comment Markdown and normalizes links/images for public UGC.

func ExtractDescription added in v0.0.3

func ExtractDescription(content string, maxLength int) string

ExtractDescription extracts readable summary text from Markdown.

func ExtractSearchContent added in v0.0.8

func ExtractSearchContent(content string) string

ExtractSearchContent extracts searchable text while preserving useful Markdown context.

func GetCommentVersion added in v0.2.6

func GetCommentVersion() uint32

func GetParser added in v0.0.3

func GetParser() goldmark.Markdown

GetParser returns the shared goldmark parser.

func GetVersion

func GetVersion() uint32

func MarkdownToHTML

func MarkdownToHTML(markdown string) string

MarkdownToHTML renders Markdown to HTML with the shared server parser.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL