parser

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPreTOC added in v0.0.5

func ExtractPreTOC(doc *document.Document, headings []string)

func ExtractSections added in v0.0.5

func ExtractSections(doc *document.Document)

ExtractSections splits doc.Body by h2 headings and populates doc.Sections. Each section contains the rendered HTML between two consecutive h2s, and a parsed Table if a Markdown table is present.

func GenerateFigureTable added in v0.0.5

func GenerateFigureTable(doc *document.Document, heading string)

func InlineFootnotes added in v0.0.5

func InlineFootnotes(doc *document.Document)

func MarkNoNumber added in v0.0.5

func MarkNoNumber(doc *document.Document, exclude []string)

func NumberReferences added in v0.0.5

func NumberReferences(doc *document.Document, biblioHeading, sitoHeading string)

func Parse

func Parse(data []byte) (*document.Document, error)

func ParseFile

func ParseFile(path string) (*document.Document, error)

func ProcessFigures added in v0.0.5

func ProcessFigures(doc *document.Document)

Types

This section is empty.

Jump to

Keyboard shortcuts

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