Documentation
¶
Overview ¶
Package doctree defines the document tree produced by the reST parser, modeled on docutils.nodes (Body, Structural, Inline element categories).
Index ¶
Constants ¶
View Source
const ( TagDocument = "document" TagSection = "section" TagTitle = "title" TagParagraph = "paragraph" TagBulletList = "bullet_list" TagEnumeratedList = "enumerated_list" TagListItem = "list_item" TagBlockQuote = "block_quote" TagTransition = "transition" TagEmphasis = "emphasis" TagStrong = "strong" TagLiteral = "literal" TagReference = "reference" TagTarget = "target" TagSubstitutionRef = "substitution_reference" TagProblematic = "problematic" TagSystemMessage = "system_message" TagComment = "comment" TagDirective = "directive" TagLiteralBlock = "literal_block" TagFieldList = "field_list" TagField = "field" TagFieldName = "field_name" TagFieldBody = "field_body" TagDefinitionList = "definition_list" TagDefinitionListItem = "definition_list_item" TagTerm = "term" TagDefinition = "definition" TagLineBlock = "line_block" TagLine = "line" TagDoctestBlock = "doctest_block" TagFootnote = "footnote" TagCitation = "citation" TagLabel = "label" TagFootnoteReference = "footnote_reference" TagCitationReference = "citation_reference" TagSubstitutionDef = "substitution_definition" TagTitleReference = "title_reference" TagSubscript = "subscript" TagSuperscript = "superscript" TagAbbreviation = "abbreviation" TagAcronym = "acronym" TagInline = "inline" TagTable = "table" TagThead = "thead" TagTbody = "tbody" TagRow = "row" TagEntry = "entry" TagOptionList = "option_list" TagOptionListItem = "option_list_item" TagOptionGroup = "option_group" TagOption = "option" TagOptionString = "option_string" TagOptionArgument = "option_argument" TagDescription = "description" TagMath = "math" )
Element tag names, mirroring the docutils.nodes class names used by the pseudoxml writer (kept as plain strings rather than a Go type per tag: docutils itself treats them as an open, extensible set via directives/roles, so a closed enum would fight the model).
Variables ¶
This section is empty.
Functions ¶
func AsText ¶
AsText concatenates all Text descendants, mirroring docutils Element.astext() (used for title-derived id/name generation).
Types ¶
Click to show internal directories.
Click to hide internal directories.