Closed varrg closed 9 months ago
you thinking on having setters for each option or a separate function setOptions(array, $array)
what would you prefer ?
Maybe both, to keep in line with parsedown and offer the more convenient set with array method
Parsedown allows setting options through per-option setters (
setBreaksEnabled
,setMarkupEscaped
, ...) which is handy when using the lib withParsedown::instance()->text($str)
ParsedownExtended does not allow this, effectively forcing us to use
(new ParsedownExtended($options))->text($str))
There should be a
setOptions()
method!