This makes it easier to add custom output formats by visiting each markdown element. This does require exposing element_for_attribute and making preformat_text and process_raw_blocks non-static. No exiting code was changed. The visitor pattern was layered on top of existing logic.
This makes it easier to add custom output formats by visiting each markdown element. This does require exposing
element_for_attribute
and makingpreformat_text
andprocess_raw_blocks
non-static. No exiting code was changed. The visitor pattern was layered on top of existing logic.