Module markdown_printer

Module markdown_printer 

Source
Expand description

Canonical Markdown generator for config AST Generates deterministic Markdown output for round-trip testing

Functionsยง

action_to_yaml ๐Ÿ”’
Convert action to YAML format (for policy rules).
ast_to_markdown
Generate a deterministic, canonical Markdown representation of a CELLSTATE AST.
autonomy_level_to_string ๐Ÿ”’
Converts an AutonomyLevel into its canonical lowercase string representation. Kept as a local helper because AutonomyLevel is defined in cellstate_core.
env_value_to_string ๐Ÿ”’
Converts an EnvValue into its canonical string representation for Markdown output. This function is kept as a local helper because EnvValue::Literal uses yaml_safe_string which is specific to the Markdown printer context.
filter_expr_to_string ๐Ÿ”’
Formats a filter expression into a canonical, human-readable string.
signal_target_to_yaml ๐Ÿ”’
Converts a SignalTarget into a YAML-compatible string representation.
yaml_safe_string ๐Ÿ”’
Quote a string value if it could be misinterpreted by YAML.