]> gitweb.factorcode.org Git - factor.git/commitdiff
fix [[link]]-foo --- should not create a list
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 25 Sep 2008 00:26:37 +0000 (19:26 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 25 Sep 2008 00:26:37 +0000 (19:26 -0500)
basis/farkup/farkup-tests.factor
basis/farkup/farkup.factor

index f549e9c04cb276e5d8c1c5d537bba196f3224f6b..9120ec97f96e9d0f67b0cfae117bcc14471cdf10 100644 (file)
@@ -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>" ] 
 [ "before:\n[factor{{ 1 2 3 } 1 tail}]" convert-farkup ] unit-test
  
-[ "<a href='Factor'>Factor</a>-rific!" ]
-[ "[[Factor]]-rific" convert-farkup ] unit-test
+[ "<p><a href='Factor'>Factor</a>-rific!</p>" ]
+[ "[[Factor]]-rific!" convert-farkup ] unit-test
index 2957e6f2ecccca1eaeb69d6ae6d40e635b447e07..ec49655d5a1c43043ce781bf4ad0d4f5f37a736d 100644 (file)
@@ -38,8 +38,6 @@ TUPLE: line ;
 
 EBNF: parse-farkup
 nl               = ("\r\n" | "\r" | "\n") => [[ drop "\n" ]]
-2nl              = nl nl
-
 
 heading1      = "=" (!("=" | nl).)+ "="
     => [[ second >string heading1 boa ]]
@@ -109,7 +107,7 @@ table            =  ((table-row nl => [[ first ]] )+ table-row? | table-row)
 text = (!(nl | code | heading | inline-delimiter | table ).)+
     => [[ >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-item nl)+ paragraph-item?
              | paragraph-item)