|Subject:||access to <style> blocks|
I've started using this module in ikiwiki instead of Text::Markdown, but there is a problem. Discount eats up <style> blocks in the input, and the module provides no way to access mkd_css to get the accumulated styles. While <style> blocks are rare, they are passed through by Text::Markdown. I have resorted to a horrible workaround where I s/<style/<elyts/ig and undo it after calling markdown. Please please provide an interface I can use to avoid that horribleness. Could __markdown return two scalars? Then the first could be the html, and the second the style. Or, the cleaner way would I guess be to make a __markdown_compile that returns an opaque object that is really a Document *. Then that could be passed into __markdown to generate html, and into other functions like __markdown_css __markdown_toc etc. Guess you'd need a __markdown_cleanup too.