Permalink
Browse files

don't consume [] for list items

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...
1 parent 4bf84d3 commit 9b60b691a6bc2b52667f4a5cbf78ecbdb00f523f @tonycoz committed Oct 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 site/cgi-bin/modules/DevHelp/Formatter.pm
@@ -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
)

0 comments on commit 9b60b69

Please sign in to comment.