Skip to content

Commit

Permalink
don't consume [] for list items
Browse files Browse the repository at this point in the history
they should contain only character markup, which should be consumed
before we get to this point.

Previously we'd consume the final ] from a surrounding block and produce
bad markup
  • Loading branch information
tonycoz committed Nov 3, 2013
1 parent 4bf84d3 commit 9b60b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/cgi-bin/modules/DevHelp/Formatter.pm
Expand Up @@ -385,7 +385,7 @@ sub format {
(?: # an item
\ * # maybe some spaces
(?:\*\*|\#\#|\%\%) # marker
[^\n]+(?:\n(?!\*\*|\#\#|\%\%)[^\n]+)* # some non-newline text
[^\n]+(?:\n(?!\*\*|\#\#|\%\%)[^\[\]\n]+)* # some non-newline text
(?:\n|$)\n? # with one or two line endings
[^\S\n]* # and any extra non-newline whitespace
)
Expand Down

0 comments on commit 9b60b69

Please sign in to comment.