Ticket #13 (assigned defect)

Opened 4 years ago

Last modified 2 years ago

bold words

Reported by: deveiant Owned by: deveiant
Priority: normal Milestone: 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

Changed 4 years ago by deveiant

  • status changed from new to assigned

Changed 3 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>"

Changed 3 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 _ _"

Changed 3 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

Changed 3 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?

Changed 3 years ago by deveiant

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

Changed 2 years ago by deveiant

  • milestone changed from Markdown 1.0.1 to Bugfixes
Note: See TracTickets for help on using tickets.