parse

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddParagraph

func AddParagraph(e *renderer.Elements, z *html.Tokenizer)

AddParagraph adds a Paragraph Element and any contained Image Elements.

func AreEqualJSON

func AreEqualJSON(b1, b2 []byte) (bool, error)

AreEqualJSON compares two json-encoded structs.

func AreStructsEqual added in v0.0.4

func AreStructsEqual(i1, i2 interface{}) (areEqual bool, err error)

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 Codeblock

func Codeblock(z *html.Tokenizer) renderer.Codeblock

Codeblock gathers the data needed to render a codeblock.

func Header(z *html.Tokenizer, startToken html.Token) renderer.Header

Header gathers the data needed to render a header. TODO: Deal with images in headers.

func Image

func Image(token html.Token) renderer.Image

Image gathers the data needed to render an image.

func LinkedImage

func LinkedImage(token html.Token, href string) renderer.Image

LinkedImage gathers the data needed to render an image with an embedded link.

func List

func List(z *html.Tokenizer, startToken html.Token) renderer.List

List gathers the data needed to render a list.

func Paragraph

func Paragraph(z *html.Tokenizer) renderer.Paragraph

Paragraph gathers the data needed to render a paragraph.

func Parse

func Parse(inputHTML []byte) renderer.Elements

Parse gathers the data needed to render a PDF.

func Table

func Table(z *html.Tokenizer) renderer.Table

Table gathers the data needed to render a table.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL