]> git.wincent.com - wikitext.git/commit
Fix PRE_START and BLOCKQUOTE_START following shorthand
authorWincent Colaiuta <win@wincent.com>
Fri, 27 Mar 2009 12:42:49 +0000 (13:42 +0100)
committerWincent Colaiuta <win@wincent.com>
Fri, 27 Mar 2009 12:42:49 +0000 (13:42 +0100)
commite7f856d82e7bfbfc616df73b00e857e8a5c0024e
tree03f5791c9307201455cc7a4236978ae0e058b2fa
parent59404245fcde385002fe5854c6f6b8889ab0f7eb
Fix PRE_START and BLOCKQUOTE_START following shorthand

This adds a special case for PRE_START and
BLOCKQUOTE_START tokens which immediately follow
PRE and BLOCKQUOTE shorthand lines.

Basically, if they appear in the first column
then they are valid, because they close the old
(shorthand) blocks and open a new block. Anywhere
other than the first column they are considered
illegal.

See:
  https://wincent.com/issues/818

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c
spec/regressions_spec.rb