Ticket #13 (closed defect: wontfix)

Opened 5 years ago

Last modified 19 months ago

bold words

Reported by: deveiant Owned by: deveiant
Milestone: Old Bugfixes Component: MarkdownSyntax
Version: 1.0.0fc2 Severity: normal
Keywords: single character bold Cc:

Description

surrounding single characters with double-asterixes doesn't result with them being treated as bold.

For example these should be interpreted as being bold:

this should be in bold
a

The first line is seen as bold, but not the second single line, instead the plain text: "*a*" is printed (omit quotes).

Change History

comment:1 Changed 5 years ago by deveiant

  • Status changed from new to assigned

comment:2 Changed 5 years ago by self@…

I'm seeing this as well:

BlueCloth.new( "is" ).to_html

=> "<p><em>_is</em>_</p>"

BlueCloth.new( "otherstring" ).to_html

=> "<p><strong>otherstring</strong></p>"

comment:3 Changed 5 years ago by self@…

Okay that comment didn't come out right. I think WikiFormatting is probably not a good idea in a defect comment where *exact* formatting could be essential to reading it right.

My examples were (without the spaces) "_ _ i s _ _" and "_ _ o t h e r s t r i n g _ _"

comment:4 Changed 5 years ago by bugs+bluecloth@…

The problem lies with the regular expressions for bold and italic. Using these fixes the problem:

BoldRegexp? = %r{ (\*\*|) (\S\S?|\S.+?\S) \1 }x ItalicRegexp? = %r{ (\*|_) (\S\S?|\S.+?\S) \1 }x

comment:5 Changed 4 years ago by garrett@…

has this been fixed yet? i see it as assigned but not resolved. if you've got a fix, when will it be in place?

comment:6 Changed 4 years ago by deveiant

I hope to package up a new release within the next week that will include a fix for this bug.

comment:7 Changed 4 years ago by deveiant

  • Milestone changed from Markdown 1.0.1 to Bugfixes

comment:8 Changed 19 months ago by deveiant

  • Status changed from assigned to closed
  • Resolution set to wontfix

Closing all BlueCloth 1 tickets. All known defects should be fixed by 2.0. Let me know if I've missed one.

Note: See TracTickets for help on using tickets.