Documentation ¶
Index ¶
- func AddParagraph(e *renderer.Elements, z *html.Tokenizer)
- func AreEqualJSON(b1, b2 []byte) (bool, error)
- func AreStructsEqual(i1, i2 interface{}) (areEqual bool, err error)
- func Blockquote(z *html.Tokenizer) renderer.Blockquote
- func Codeblock(z *html.Tokenizer) renderer.Codeblock
- func Header(z *html.Tokenizer, startToken html.Token) renderer.Header
- func Image(token html.Token) renderer.Image
- func LinkedImage(token html.Token, href string) renderer.Image
- func List(z *html.Tokenizer, startToken html.Token) renderer.List
- func Paragraph(z *html.Tokenizer) renderer.Paragraph
- func Parse(inputHTML []byte) renderer.Elements
- func Table(z *html.Tokenizer) renderer.Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddParagraph ¶
AddParagraph adds a Paragraph Element and any contained Image Elements.
func AreEqualJSON ¶
AreEqualJSON compares two json-encoded structs.
func AreStructsEqual ¶ added in v0.0.4
AreStructsEqual compares two structs by encoding them into byte slices, decoding the bytes into empty interfaces, and comparing the interfaces with reflect.DeepEqual.
func Blockquote ¶
func Blockquote(z *html.Tokenizer) renderer.Blockquote
Blockquote gathers the data needed to render a blockquote.
func LinkedImage ¶
LinkedImage gathers the data needed to render an image with an embedded link.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.