Documentation
¶
Index ¶
Constants ¶
const DefaultTagTemplate = "`{{tag}}`"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code struct{}
Code replaces div tag stylized to look like code blocks with an actual <pre> tag
func (*Code) ReplaceTag ¶
ReplaceTag implements the TagReplacer interface
type Converter ¶
type Converter struct { TagTemplate string EnableHighlights bool // contains filtered or unexported fields }
Converter holds configuration options to control conversion
func NewConverter ¶
type ExtraDiv ¶
type ExtraDiv struct{}
ExtraDiv removes extra line break in tables and lists
func (*ExtraDiv) ReplaceTag ¶
ReplaceTag implements the TagReplacer interface
type Media ¶
type Media struct {
// contains filtered or unexported fields
}
Media tag replacer puts a standard HTML <img> tag instead of custom <en-media> tag if it is an image and <a> tag for everything else to be able to download it as a file
func NewReplacerMedia ¶
NewReplacerMedia creates a Media TagReplacer using resources as a data source
func (*Media) ReplaceTag ¶
ReplaceTag implements the TagReplacer interface
type TagReplacer ¶
TagReplacer allows manipulating HTML nodes in order to present custom tags correctly in Markdown format after conversion
type TextFormatter ¶
type TextFormatter struct{}
TextFormatter catches bold and italic, bold takes precedence
func (*TextFormatter) ReplaceTag ¶
func (*TextFormatter) ReplaceTag(n *html.Node)
ReplaceTag implements the TagReplacer interface