Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BlockTags = []string{"p", "h1", "h2", "h3", "h4", "h5", "h6", "ol", "ul", "pre", "blockquote", "div", "hr", "table"}
View Source
var MatrixToURL = regexp.MustCompile("^(?:https?://)?(?:www\\.)?matrix\\.to/#/([#@!+].*)(?:/(\\$.+))?")
Functions ¶
func HTMLToText ¶
func RenderMarkdown ¶
Types ¶
type HTMLParser ¶
type HTMLParser struct { PillConverter func(mxid, eventID string) string TabsToSpaces int Newline string BoldConverter TextConverter ItalicConverter TextConverter StrikethroughConverter TextConverter UnderlineConverter TextConverter MonospaceBlockConverter TextConverter MonospaceConverter TextConverter }
func (*HTMLParser) Parse ¶
func (parser *HTMLParser) Parse(htmlData string) string
type TaggedString ¶
type TaggedString struct {
// contains filtered or unexported fields
}
type TextConverter ¶
Click to show internal directories.
Click to hide internal directories.