Commits

Anonymous committed 8bf750b

prevent space blocks from interfering

  • Participants
  • Parent commits edd9b7a

Comments (0)

Files changed (2)

 
 See the file ``COPYING`` in the root dir.
 
-.. _Contatct: megas.kapaneus@gmail.com
+.. _Contact: megas.kapaneus@gmail.com
 .. _maintainer: Contact_

File parsers/acceptor_p-mediawiki.lua

   ------------------------------------------------------------------------
 
   reference        = Ct(V"empty_reference" + V"normal_reference")
+  --reference        = Ct(V"normal_reference" + V"empty_reference")
                    / formatter.reference
                    ,
   empty_reference  = P"<"
   triple_dot          = V"dot" * V"dot" * V"dot",
   underscore          = P"_",
 
-  goodies             = Cs(V"triple_dot" / "\\dots "),
+  goodies             = Cs(V"triple_dot" / "\\dots ")
+                      + Cs(V"underscore" / "\\letterunderscore ")
+                      ,
   
   word_char           = V"ucase_letter" + V"lcase_letter" + V"decimal_digit",
   non_word_char       = 1 - V"word_char",
   block_start   = (V"horizontal_rule"
                  + V"heading"
                  + V"list_start"
-                 + V"table_start"
-                 + V"space_block")
+                 + V"table_start")
+                 --+ V"space_block")
                 + V"whitespace_rest"
                 ,
   ------------------------------------------------------------------------
     ["&"] = [[{\letterampersand}]],
     ["$"] = [[{\letterdollar}]],
     ["^"] = [[{\letterhat}]],
-    ["_"] = [[{\letterunderscore}]],
+    --["_"] = [[{\letterunderscore}]],
     ["%"] = [[{\letterpercent}]],
   }
   local post_escape_chars = {