Module rustla::parser::directive_parsers[][src]

A file that contains functions dedicated to parsing directives, reStructuredText extensions. All of these follow the same basic pattern:

  1. check for directive argument
  2. check for directive options and filter them for accepted ones,
  3. return with a transition result, so that the parser might continue parsing the contents of the directive node.

Some small deviations from this pattern might occur, since a directive might not accept arguments or options, or just not have any content.

Copyright © 2020 Santtu Söderholm

Functions

parse_aplus_acos_submit
parse_aplus_active_element_input
parse_aplus_active_element_output

Parses an A+ active element output directive into the respective node

parse_aplus_annotated
parse_aplus_div
parse_aplus_embedded_page
parse_aplus_freetext

A freetext type questionnaire question parser.

parse_aplus_hidden_block
parse_aplus_jsvee
parse_aplus_lineref_codeblock
parse_aplus_local_video
parse_aplus_pick_any

A pick-any type questionnaire question parser.

parse_aplus_pick_one

A pick-one type questionnaire question parser.

parse_aplus_point_of_interest

Parses an A+ point of interest directive into the respective node. Add support for the row and column directives introduced in November 2020.

parse_aplus_questionnaire
parse_aplus_repl_res_count_reset
parse_aplus_story
parse_aplus_styled_topic
parse_aplus_submit
parse_aplus_toctree
parse_aplus_youtube
parse_citations
parse_class
parse_code

The “code” directive parser.

parse_compound
parse_container
parse_contents
parse_csv_table
parse_default_role
parse_epigraph
parse_figure
parse_footnotes
parse_generic_admonition

Much like parse_standard_admonition, except

parse_header_or_footer
parse_highlights
parse_image
parse_include

Parses in “include” directive for its argument and options. Generates an “include” node in the parse tree with the given options.

parse_line_block
parse_list_table
parse_math_block

The display math parser. Content blocks separated by a blank lines are put in adjacent math blocks.

parse_meta
parse_parsed_literal
parse_pull_quote
parse_raw
parse_role
parse_rubric
parse_section_numbering
parse_sidebar
parse_sphinx_centered
parse_sphinx_code_block

A parser for the Sphinx-specific code-block directive. See https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-code-block for explanations of different settings and arguments.

parse_sphinx_codeauthor
parse_sphinx_deprecated
parse_sphinx_glossary
parse_sphinx_highlight
parse_sphinx_hlist
parse_sphinx_index
parse_sphinx_literalinclude
parse_sphinx_math_block
parse_sphinx_only
parse_sphinx_productionlist
parse_sphinx_sectionauthor
parse_sphinx_seealso
parse_sphinx_tabularcolumns
parse_sphinx_toctree
parse_sphinx_versionadded
parse_sphinx_versionchanged
parse_standard_admonition
parse_table
parse_target_notes
parse_title
parse_topic
parse_unknown_directive

Parses unknown directive blocks as literal text.

restucturetext_test_directive