Documentation ¶
Index ¶
- Variables
- func NewGfmIDs() parser.IDs
- func NewSafeIDs() parser.IDs
- type AudioOpt
- type AutoIdsOptions
- type EmbedOptions
- type EmbedRules
- type EmojiConfig
- type EmojiMapping
- type EmojiOptions
- type ExtFlags
- type FootnoteOptions
- type GfmIDs
- type Head
- type IframeOpt
- type Md2Html
- type MdConfig
- type SafeIDs
- type Toc
- type VideoOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var AutoIdsMap = map[string]func() parser.IDs{"": NewSafeIDs}
View Source
var ErrBadAutoIdsType = errors.New("bad auto IDs type")
Functions ¶
func NewSafeIDs ¶
Types ¶
type AudioOpt ¶
type AudioOpt struct { SiteId string Host string Path string `toml:",omitempty"` Regex *regexp.Regexp `toml:",omitempty"` }
func (*AudioOpt) UnmarshalTOML ¶
type AutoIdsOptions ¶
type AutoIdsOptions struct {
Type string `toml:",omitempty"`
}
type EmbedOptions ¶
type EmbedOptions struct {
Rules upath.Import[*EmbedRules] `toml:",omitempty"`
}
type EmbedRules ¶
type EmbedRules struct { AudioExt []string `toml:",omitempty"` VideoExt []string `toml:",omitempty"` Video []VideoOpt `toml:",omitempty"` Audio []AudioOpt `toml:",omitempty"` Iframe []IframeOpt `toml:",omitempty"` // contains filtered or unexported fields }
func (*EmbedRules) Initialize ¶
func (er *EmbedRules) Initialize()
func (*EmbedRules) IsZero ¶
func (er *EmbedRules) IsZero() bool
func (*EmbedRules) MakeNew ¶
func (_ *EmbedRules) MakeNew() *EmbedRules
func (*EmbedRules) UnmarshalTOML ¶
func (er *EmbedRules) UnmarshalTOML(decode func(interface{}) error) error
type EmojiConfig ¶
type EmojiMapping ¶
type EmojiMapping map[string]*EmojiConfig
func (*EmojiMapping) Initialize ¶
func (em *EmojiMapping) Initialize()
func (*EmojiMapping) MakeNew ¶
func (_ *EmojiMapping) MakeNew() *EmojiMapping
func (*EmojiMapping) UnmarshalTOML ¶
func (em *EmojiMapping) UnmarshalTOML(decode func(interface{}) error) error
type EmojiOptions ¶
type EmojiOptions struct {
Mapping upath.Import[*EmojiMapping] `toml:",omitempty"`
}
type ExtFlags ¶
type ExtFlags struct { Table bool `toml:",omitempty"` Strikethrough bool `toml:",omitempty"` TaskList bool `toml:",omitempty"` DefinitionList bool `toml:",omitempty"` Footnote bool `toml:",omitempty"` Autolinks bool `toml:",omitempty"` Cjk bool `toml:",omitempty"` Emoji bool `toml:",omitempty"` Highlight bool `toml:",omitempty"` Math bool `toml:",omitempty"` Mermaid bool `toml:",omitempty"` GeoMap bool `toml:",omitempty"` Embed bool `toml:",omitempty"` }
type FootnoteOptions ¶
type FootnoteOptions struct {
BacklinkHTML string `toml:",omitempty"`
}
type IframeOpt ¶
type IframeOpt struct { SiteId string Host string Type string Path string `toml:",omitempty"` Query string `toml:",omitempty"` Regex *regexp.Regexp `toml:",omitempty"` Player string }
func (*IframeOpt) UnmarshalTOML ¶
type MdConfig ¶
type MdConfig struct { Extension ExtFlags AutoIds AutoIdsOptions Footnote FootnoteOptions Emoji EmojiOptions Embed EmbedOptions ModTime time.Time `toml:"-"` // contains filtered or unexported fields }
func NewMdConfigDefault ¶
func NewMdConfigDefault() *MdConfig
func (*MdConfig) Initialize ¶
func (mc *MdConfig) Initialize()
func (*MdConfig) UnmarshalTOML ¶
type Toc ¶
func (*Toc) ConvertHtml ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.