Documentation
¶
Overview ¶
Parses markdown to html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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
type Source ¶ added in v0.1.1
func (*Source) ParseInternalLinks ¶ added in v0.1.1
Parse b to find all other links within the document.
func (*Source) ParseMetadata ¶ added in v0.1.1
Parse metadata (frontmatter) from source b.
func (*Source) ParseSource ¶ added in v0.1.1
Read in b and parse body. Frontmatter is reprocessed to strip it.
Click to show internal directories.
Click to hide internal directories.