Documentation ¶
Index ¶
- func AddParagraph(e *renderable.Elements, z *html.Tokenizer)
- func AreEqualJSON(b1, b2 []byte) (bool, error)
- func Blockquote(z *html.Tokenizer) renderable.Blockquote
- func Codeblock(z *html.Tokenizer) renderable.Codeblock
- func Header(z *html.Tokenizer, startToken html.Token) renderable.Header
- func Image(token html.Token) renderable.Image
- func LinkedImage(token html.Token, href string) renderable.Image
- func List(z *html.Tokenizer, startToken html.Token) renderable.List
- func Paragraph(z *html.Tokenizer) renderable.Paragraph
- func Parse(inputHTML []byte) renderable.Elements
- func Table(z *html.Tokenizer) renderable.Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddParagraph ¶
func AddParagraph(e *renderable.Elements, z *html.Tokenizer)
AddParagraph adds a Paragraph Element and any contained Image Elements.
func AreEqualJSON ¶
AreEqualJSON compares two json-encoded structs.
func Blockquote ¶
func Blockquote(z *html.Tokenizer) renderable.Blockquote
Blockquote gathers the data needed to render a blockquote.
func Codeblock ¶
func Codeblock(z *html.Tokenizer) renderable.Codeblock
Codeblock gathers the data needed to render a codeblock.
func Image ¶
func Image(token html.Token) renderable.Image
Image gathers the data needed to render an image.
func LinkedImage ¶
func LinkedImage(token html.Token, href string) renderable.Image
LinkedImage gathers the data needed to render an image with an embedded link.
func Paragraph ¶
func Paragraph(z *html.Tokenizer) renderable.Paragraph
Paragraph gathers the data needed to render a paragraph.
func Parse ¶
func Parse(inputHTML []byte) renderable.Elements
Parse gathers the data needed to render a PDF.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.