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

Owner: Nobody in particular
Requestors: joey [...]

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

Subject: access to <style> blocks
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 875
Download (untitled) / with headers
text/plain 875b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to