Skip Menu |

This queue is for tickets about the HTML-WikiConverter-Markdown CPAN distribution.

Report information
The Basics
Id: 43993
Status: resolved
Worked: 15 min
Priority: 0/
Queue: HTML-WikiConverter-Markdown

People
Owner: diberri [...] cpan.org
Requestors: ddascalescu+perl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Underscores in `code_sections` must not be \-escaped
The module will backslash-escape underscores in code sections, but this will result in the backslashes themselves being rendered by Markdown: <code>foo_bar</code> is converted to `foo\_bar`. Below is a test for this: --- markdown.old 2008-Aug-06 18:13:50 +++ markdown.t 2009-Mar-10 02:27:10 @@ -142,145 +142,151 @@ `printf()` __NEXT__ +underscores in code have no effect +__H__ +<code>foo _bar_ baz foo_bar</code> +__W__ +`foo _bar_ baz foo_bar` +__NEXT__ inline image ::image_style('inline') __H__ HTH, Dan
On Tue Mar 10 05:31:49 2009, dandv wrote: Show quoted text
> The module will backslash-escape underscores in code sections, but this > will result in the backslashes themselves being rendered by Markdown: > > <code>foo_bar</code> is converted to `foo\_bar`.
Thanks for the report. I've added a fix for this bug in H::WC::Markdown 0.04, which I plan to release tonight. Show quoted text
> Below is a test for this: > > --- markdown.old 2008-Aug-06 18:13:50 > +++ markdown.t 2009-Mar-10 02:27:10 > @@ -142,145 +142,151 @@ > `printf()` > __NEXT__ > +underscores in code have no effect > +__H__ > +<code>foo _bar_ baz foo_bar</code> > +__W__ > +`foo _bar_ baz foo_bar`
Thank you for the test! This makes my life much easier and is always much appreciated. :-) -- David Iberri