Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarkdownConvert ¶
type MarkdownConvert struct {
// contains filtered or unexported fields
}
func New ¶
func New() *MarkdownConvert
func (*MarkdownConvert) Convert ¶
func (c *MarkdownConvert) Convert(mdStr string, data *TemplateData) (err error)
type TemplateData ¶
type TemplateData struct { SiteUrl string `remark:"站点地址"` Title string `remark:"<title>Title"` Keywords string `remark:"<meta>Keywords逗号隔开"` Description string `remark:"<meta>description"` HasKatex bool `remark:"md中是否解析了katex"` HasMermaid bool `remark:"md中是否解析了mermaid"` CurrentDirs []TemplateFileItemData `remark:"路径"` CurrentFile string `remark:"当前渲染文件(也有可能是目录)"` CurrentIsFile bool `remark:"是否有渲染文件"` Content []byte `remark:"md"` MdHtml string `remark:"html"` UpperPath string `remark:"上一级连接"` }
Click to show internal directories.
Click to hide internal directories.