Documentation
¶
Overview ¶
Parses markdown to html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseInternalLinks ¶
Parse b to find all other links within the document.
Types ¶
type Metadata ¶
type Metadata struct {
Title string `yaml:"title"`
Description string `yaml:"description"`
Date string `yaml:"date"`
DateUpdated string `yaml:"dateUpdated"`
Layout string `yaml:"layout"`
Tags []string `yaml:"tags"`
Pinned bool `yaml:"pinned"`
Unlisted bool `yaml:"unlisted"`
Draft bool `yaml:"draft"`
TOC bool `yaml:"toc"`
ShowHeader bool `yaml:"showHeader"`
}
Allowed frontmatter in unmarshalled YAML.
Default values ¶
* Pinned: false
* Unlisted: false
* ShowHeader: true
* Layout: "list"
* Draft: false
* TOC: false
func DefaultMetadata ¶
func DefaultMetadata() Metadata
func ParseMetadata ¶
Parse metadata (frontmatter) from source b.
Click to show internal directories.
Click to hide internal directories.