Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Expression ¶
type MDXDocument ¶
type MDXDocument struct {
Frontmatter map[string]interface{}
Content string
HTML string
Layout string
Components []string
Imports []Import
}
func ParseMDX ¶
func ParseMDX(content string) (*MDXDocument, error)
func (*MDXDocument) GetFrontmatterBool ¶
func (d *MDXDocument) GetFrontmatterBool(key string) bool
func (*MDXDocument) GetFrontmatterInt ¶
func (d *MDXDocument) GetFrontmatterInt(key string) int
func (*MDXDocument) GetFrontmatterString ¶
func (d *MDXDocument) GetFrontmatterString(key string) string
func (*MDXDocument) HasComponent ¶
func (d *MDXDocument) HasComponent(name string) bool
type MarkdownDocument ¶
type MarkdownDocument struct {
Frontmatter map[string]interface{}
Content string
HTML string
Layout string
}
func ParseMarkdown ¶
func ParseMarkdown(content string) (*MarkdownDocument, error)
func ParseMarkdownWithYAMLFrontmatter ¶
func ParseMarkdownWithYAMLFrontmatter(content string) (*MarkdownDocument, error)
func (*MarkdownDocument) GetFrontmatterBool ¶
func (d *MarkdownDocument) GetFrontmatterBool(key string) bool
func (*MarkdownDocument) GetFrontmatterInt ¶
func (d *MarkdownDocument) GetFrontmatterInt(key string) int
func (*MarkdownDocument) GetFrontmatterString ¶
func (d *MarkdownDocument) GetFrontmatterString(key string) string
Click to show internal directories.
Click to hide internal directories.