progsource / maddy

C++ Markdown to HTML header-only parser library
MIT License
203 stars 40 forks source link

Add further configuration options to disable particular parsers #37

Closed dspreadbury closed 1 year ago

dspreadbury commented 1 year ago

I'm using Maddy to parse simple Markdown-like text and would find it useful to have more configuration options to disable particular parsers, in the same way that the Config object allows the emphasis parser to be disabled. I'd actually like to have only the parsers for bold/stong text and emphasis enabled, and disable everything else. It would be great to have some more members in the Config object to make this possible.

progsource commented 1 year ago

Sounds good to me. I'll put it on my todo list :)

progsource commented 1 year ago

This is now in master and will be in maddy with version 1.2.0.

config->enabledParsers = maddy::types::EMPHASIZED_PARSER | maddy::types::STRONG_PARSER;
dspreadbury commented 1 year ago

Thanks so much, Petra!