Skip Menu |

This queue is for tickets about the Text-Markdown-Discount CPAN distribution.

Report information
The Basics
Id: 74016
Status: new
Priority: 0/
Queue: Text-Markdown-Discount

People
Owner: Nobody in particular
Requestors: joey [...] kitenet.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.01
  • 0.02
Fixed in: (no value)



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.