Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 37769
Status: resolved
Priority: 0/
Queue: Text-Markdown

People
Owner: bobtfish [...] bobtfish.net
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.0.16
  • 1.0.17
  • 1.0.18
  • 1.0.19
Fixed in: 1.0.20



Subject: tripledash inside "code" block should not be HR
I wrote some Markdown text with a code block of YAML in it. The "---" of the YAML became a HR. For output, see http://rjbs.manxome.org/rubric/entry/1647 This input should not produce an HR: foo: bar ... --- bar: foo ... -- rjbs
http://daringfireball.net/projects/markdown/syntax#precode At least 4 spaces or 1 tab for code block syntax... Your email was somewhat mangled, but I think you only had 3 spaces, ergo it not working.. Looking at your source in Babelmark, it appears to work correctly. http://babelmark.bobtfish.net/?markdown=++++foo%3A+bar%0D%0A++++...%0D%0A++++---%0D%0A++++bar%3A+foo%0D%0A++++...&normalize=on&src=1&dest=2 I'm going to resolve this, please feel free to re-open if I'm being dumb and missing something. Cheers t0m
Subject: Re: [rt.cpan.org #37769] tripledash inside "code" block should not be HR
Date: Fri, 18 Jul 2008 07:02:27 -0400
To: Tomas Doran via RT <bug-Text-Markdown [...] rt.cpan.org>
From: Ricardo SIGNES <rjbs [...] cpan.org>
* Tomas Doran via RT <bug-Text-Markdown@rt.cpan.org> [2008-07-18T05:43:55] Show quoted text
> I'm going to resolve this, please feel free to re-open if I'm being dumb > and missing something.
I was very eager to tell you that you were being dumb and missing something, but the bug is more subtle than I thought. As you said, it works properly with four spaces. I used two... but I use the tab_width setting. The current documentation does not document the original (intented, from the code) behavior of this, which is that it sets the number of spaces required for a code block to exist. Attached is a failing test. -- rjbs

Message body is not shown because sender requested not to inline it.