fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
525 stars 55 forks source link

Added markdown_with_visitor and markdown_visit_element_list. #152

Closed jeffwatkins closed 2 years ago

jeffwatkins commented 10 years ago

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.