internal/

directory
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT

Directories

Path Synopsis
Package blocks turns an HTML document tree into the blocks of the shared model: headings, paragraphs, list items, tables, code, quotes, captions, images, comments and form values, with white space collapsed as CSS white-space: normal does, links and styles as spans, and the display reasons the page declares.
Package blocks turns an HTML document tree into the blocks of the shared model: headings, paragraphs, list items, tables, code, quotes, captions, images, comments and form values, with white space collapsed as CSS white-space: normal does, links and styles as spans, and the display reasons the page declares.
Package css reads the declarations of an inline style attribute that say how content is displayed: display, visibility, opacity, the alpha of the text colour, and white-space.
Package css reads the declarations of an inline style attribute that say how content is displayed: display, visibility, opacity, the alpha of the text colour, and white-space.
Package dom builds a document tree from HTML tokens, recovering from tag soup the way the WHATWG HTML standard's tree construction does for the cases that change what text belongs where: implied end tags (p, li, dd, dt, option, table cells and rows), misnested formatting elements (a simplified adoption agency algorithm), reopening of formatting elements closed by a block, foster parenting of content misplaced in tables, foreign content (SVG, MathML) and the elements that break out of it.
Package dom builds a document tree from HTML tokens, recovering from tag soup the way the WHATWG HTML standard's tree construction does for the cases that change what text belongs where: implied end tags (p, li, dd, dt, option, table cells and rows), misnested formatting elements (a simplified adoption agency algorithm), reopening of formatting elements closed by a block, foster parenting of content misplaced in tables, foreign content (SVG, MathML) and the elements that break out of it.
Package epub reads the container of an EPUB 2 or 3 publication: the zip archive, META-INF/container.xml, the package document (OPF) with its metadata, manifest and spine, the navigation (EPUB 3 nav document or EPUB 2 NCX) and META-INF/encryption.xml.
Package epub reads the container of an EPUB 2 or 3 publication: the zip archive, META-INF/container.xml, the package document (OPF) with its metadata, manifest and spine, the navigation (EPUB 3 nav document or EPUB 2 NCX) and META-INF/encryption.xml.
Package jsonscan reads the tokens of JSON text with their byte offsets, in one pass and without building values: the structure of a document (objects, arrays, members, scalars) and where each piece is.
Package jsonscan reads the tokens of JSON text with their byte offsets, in one pass and without building values: the structure of a document (objects, arrays, members, scalars) and where each piece is.
Package lexer is an HTML tokenizer following the WHATWG HTML standard, section 13.2.5 "Tokenization", for the states that decide what text a document holds: data, RCDATA, RAWTEXT, script data with its escaped states, PLAINTEXT, tags and attributes, comments, bogus comments, DOCTYPE, CDATA sections in foreign content, and character references.
Package lexer is an HTML tokenizer following the WHATWG HTML standard, section 13.2.5 "Tokenization", for the states that decide what text a document holds: data, RCDATA, RAWTEXT, script data with its escaped states, PLAINTEXT, tags and attributes, comments, bogus comments, DOCTYPE, CDATA sections in foreign content, and character references.
Package md parses Markdown, following the block and inline structure of CommonMark 0.31 (with the GFM tables, strikethrough, task lists and extended autolinks), and renders it to HTML as a CommonMark renderer does, keeping a map from offsets in the HTML back to offsets in the Markdown.
Package md parses Markdown, following the block and inline structure of CommonMark 0.31 (with the GFM tables, strikethrough, task lists and extended autolinks), and renders it to HTML as a CommonMark renderer does, keeping a map from offsets in the HTML back to offsets in the Markdown.
Package subtitle reads SubRip (.srt) and WebVTT (.vtt) text, decoded to UTF-8, into cues and the other blocks of the file, with their offsets in that text.
Package subtitle reads SubRip (.srt) and WebVTT (.vtt) text, decoded to UTF-8, into cues and the other blocks of the file, with their offsets in that text.
Package yaml is a streaming, event-based parser of YAML 1.2.2 that gives every node its place in the input.
Package yaml is a streaming, event-based parser of YAML 1.2.2 that gives every node its place in the input.

Jump to

Keyboard shortcuts

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