Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultReplaces = map[string]ReplaceChars{
"*": {"**", "**"},
"_": {"__", "__"},
"~": {"~~", "~~"},
"```": {"```", "```"},
}
View Source
var HTMLReplaces = map[string]ReplaceChars{
"*": {"<b>", "</b>"},
"_": {"<i>", "</i>"},
"~": {"<s>", "</s>"},
"```": {"<code>", "</code>"},
}
Functions ¶
func FindNextClosing ¶
func FindNextOpening ¶
func ReplaceChar ¶
func ReplaceChar(text string, find string, replace ReplaceChars) string
Types ¶
type ReplaceChars ¶
Click to show internal directories.
Click to hide internal directories.