rst

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package rst is a reStructuredText parser producing a doctree.Element document tree, modeled on docutils.parsers.rst.states.

SCOPE (v1 — see [[go-docutils-org]] for the plan): sections (over/under lined titles), paragraphs, transitions, bullet lists, enumerated lists (arabic + '.' suffix only), field lists, definition lists, line blocks (flat, see lineblock.go for the un-implemented indent-nesting), doctest blocks, block quotes, literal blocks, comments, directives (captured structurally only, see explicit.go), hyperlink targets with reference resolution, footnotes, citations, substitution definitions (see explicit.go for all three — no numbering/symbol resolution, no substitution-value inlining), simple tables and GRID tables (see table.go and gridtable.go), and the inline markup in inline.go. NOT yet ported: option lists (see fieldlist.go for why they're deferred), indirect/anonymous hyperlink targets, per-directive semantics. Title- style consistency and enumerator-sequence validation are not enforced (docutils errors on inconsistent styles or skipped levels; this parser silently assigns a level instead).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(source string) *doctree.Element

Parse parses reStructuredText source into a document tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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