Documentation
¶
Overview ¶
Package markdown 提供Markdown渲染工具 创建者:Done-0 创建时间:2025-08-13
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMarkdownRenderer ¶
func NewMarkdownRenderer(config MarkdownConfig) goldmark.Markdown
NewMarkdownRenderer 创建一个新的 Markdown 渲染器 参数:
- config: Markdown配置
返回值:
- goldmark.Markdown: Markdown渲染器
func RenderMarkdown ¶
RenderMarkdown 将 Markdown 渲染为 HTML 参数:
- content: Markdown内容
返回值:
- string: 渲染后的 HTML
- error: 渲染过程中的错误
Types ¶
Click to show internal directories.
Click to hide internal directories.