fix [[link]]-foo --- should not create a list
parent
7e5af60cbc
commit
72685aa77e
|
@ -139,5 +139,5 @@ link-no-follow? off
|
||||||
[ "<p>before:\n<pre><span class='OPERATOR'>{</span> <span class='DIGIT'>1</span> <span class='DIGIT'>2</span> <span class='DIGIT'>3</span> <span class='OPERATOR'>}</span> <span class='DIGIT'>1</span> tail\n</pre></p>" ]
|
[ "<p>before:\n<pre><span class='OPERATOR'>{</span> <span class='DIGIT'>1</span> <span class='DIGIT'>2</span> <span class='DIGIT'>3</span> <span class='OPERATOR'>}</span> <span class='DIGIT'>1</span> tail\n</pre></p>" ]
|
||||||
[ "before:\n[factor{{ 1 2 3 } 1 tail}]" convert-farkup ] unit-test
|
[ "before:\n[factor{{ 1 2 3 } 1 tail}]" convert-farkup ] unit-test
|
||||||
|
|
||||||
[ "<a href='Factor'>Factor</a>-rific!" ]
|
[ "<p><a href='Factor'>Factor</a>-rific!</p>" ]
|
||||||
[ "[[Factor]]-rific" convert-farkup ] unit-test
|
[ "[[Factor]]-rific!" convert-farkup ] unit-test
|
||||||
|
|
|
@ -38,8 +38,6 @@ TUPLE: line ;
|
||||||
|
|
||||||
EBNF: parse-farkup
|
EBNF: parse-farkup
|
||||||
nl = ("\r\n" | "\r" | "\n") => [[ drop "\n" ]]
|
nl = ("\r\n" | "\r" | "\n") => [[ drop "\n" ]]
|
||||||
2nl = nl nl
|
|
||||||
|
|
||||||
|
|
||||||
heading1 = "=" (!("=" | nl).)+ "="
|
heading1 = "=" (!("=" | nl).)+ "="
|
||||||
=> [[ second >string heading1 boa ]]
|
=> [[ second >string heading1 boa ]]
|
||||||
|
@ -109,7 +107,7 @@ table = ((table-row nl => [[ first ]] )+ table-row? | table-row)
|
||||||
text = (!(nl | code | heading | inline-delimiter | table ).)+
|
text = (!(nl | code | heading | inline-delimiter | table ).)+
|
||||||
=> [[ >string ]]
|
=> [[ >string ]]
|
||||||
|
|
||||||
paragraph-item = (table | list | code | text | inline-tag | inline-delimiter)+
|
paragraph-item = (table | nl list | code | text | inline-tag | inline-delimiter)+
|
||||||
paragraph = ((paragraph-item nl => [[ first ]])+ nl+ => [[ first ]]
|
paragraph = ((paragraph-item nl => [[ first ]])+ nl+ => [[ first ]]
|
||||||
| (paragraph-item nl)+ paragraph-item?
|
| (paragraph-item nl)+ paragraph-item?
|
||||||
| paragraph-item)
|
| paragraph-item)
|
||||||
|
|
Loading…
Reference in New Issue