Skip to main content

Crate dada_mdbook_preprocessor

Crate dada_mdbook_preprocessor 

Source

Structsยง

DadaPreprocessor ๐Ÿ”’
RfcFrontMatter ๐Ÿ”’
RfcInfo ๐Ÿ”’

Functionsยง

build_nonterminal_map ๐Ÿ”’
Scans all chapters for headings matching ## `Nonterminal` definition and builds a map from nonterminal name to relative URL for cross-chapter linking.
create_rfc_chapter ๐Ÿ”’
extract_rfc_info ๐Ÿ”’
extract_section ๐Ÿ”’
format_status ๐Ÿ”’
generate_all_rfcs_html ๐Ÿ”’
generate_rfc_table_html ๐Ÿ”’
get_inline_css ๐Ÿ”’
๐Ÿ’ก Returns inline CSS with blank lines stripped. Blank lines inside <style> tags cause mdbookโ€™s markdown processor to insert <p> tags, which breaks the CSS.
handle_preprocessing ๐Ÿ”’
handle_supports ๐Ÿ”’
html_escape ๐Ÿ”’
Escapes HTML special characters in terminal content.
main ๐Ÿ”’
make_app
make_relative_link ๐Ÿ”’
Computes a relative link from current_path to target_url.
parse_front_matter ๐Ÿ”’
populate_all_rfcs_section ๐Ÿ”’
populate_rfc_sections ๐Ÿ”’
process_spec_directives ๐Ÿ”’
Processes MyST {spec} directives into HTML with anchors and styling.
render_ebnf_blocks ๐Ÿ”’
Converts markdown ```ebnf ``` code fences into HTML <pre> blocks with linked nonterminals.
render_ebnf_line ๐Ÿ”’
Renders a single EBNF line, replacing nonterminal references with links and backtick-quoted terminals with styled <code> spans.