diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-01 22:46:30 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-01 22:46:30 -0800 |
commit | 3e61333af0f5ac1cdb045bdab0293f03e2e1e39e (patch) | |
tree | f57121abaa05824e11e22381411566231279a864 /tests/tables.native | |
parent | 0411f514338e5d27dc80847758cc28fc824a88c5 (diff) |
Fixed regression in markdown reader.
'(_hi_)' was being parsed with literal underscores (no emphasis).
The fix: the 'str' parser now only parses alphanumerics and
embedded underscores. All other symbols are handled by the
'symbol' parser. This has a slight effect on the AST, since
you'll get [Str "hi",Str ":"] insntead of [Str "hi:"]. But there
should not be a visible effect in any of the writers.
Thanks to gwern for pointing out the regression.
Diffstat (limited to 'tests/tables.native')
-rw-r--r-- | tests/tables.native | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/tables.native b/tests/tables.native index 8592831fe..498273582 100644 --- a/tests/tables.native +++ b/tests/tables.native @@ -1,5 +1,5 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) -[ Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption:"] +[ Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption",Str ":"] , Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax",Str "."] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [0.0,0.0,0.0,0.0] [ [ Plain [Str "Right"] ] , [ Plain [Str "Left"] ] @@ -17,7 +17,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) , [ Plain [Str "1"] ] , [ Plain [Str "1"] ] , [ Plain [Str "1"] ] ] ] -, Para [Str "Simple",Space,Str "table",Space,Str "without",Space,Str "caption:"] +, Para [Str "Simple",Space,Str "table",Space,Str "without",Space,Str "caption",Str ":"] , Table [] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [0.0,0.0,0.0,0.0] [ [ Plain [Str "Right"] ] , [ Plain [Str "Left"] ] @@ -35,7 +35,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) , [ Plain [Str "1"] ] , [ Plain [Str "1"] ] , [ Plain [Str "1"] ] ] ] -, Para [Str "Simple",Space,Str "table",Space,Str "indented",Space,Str "two",Space,Str "spaces:"] +, Para [Str "Simple",Space,Str "table",Space,Str "indented",Space,Str "two",Space,Str "spaces",Str ":"] , Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax",Str "."] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [0.0,0.0,0.0,0.0] [ [ Plain [Str "Right"] ] , [ Plain [Str "Left"] ] @@ -53,7 +53,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) , [ Plain [Str "1"] ] , [ Plain [Str "1"] ] , [ Plain [Str "1"] ] ] ] -, Para [Str "Multiline",Space,Str "table",Space,Str "with",Space,Str "caption:"] +, Para [Str "Multiline",Space,Str "table",Space,Str "with",Space,Str "caption",Str ":"] , Table [Str "Here",Str "'",Str "s",Space,Str "the",Space,Str "caption",Str ".",Space,Str "It",Space,Str "may",Space,Str "span",Space,Str "multiple",Space,Str "lines",Str "."] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.15,0.1375,0.1625,0.3375] [ [ Plain [Str "Centered",Space,Str "Header"] ] , [ Plain [Str "Left",Space,Str "Aligned"] ] @@ -67,7 +67,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) , [ Plain [Str "row"] ] , [ Plain [Str "5",Str ".",Str "0"] ] , [ Plain [Str "Here",Str "'",Str "s",Space,Str "another",Space,Str "one",Str ".",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows",Str "."] ] ] ] -, Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "caption:"] +, Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "caption",Str ":"] , Table [] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.15,0.1375,0.1625,0.3375] [ [ Plain [Str "Centered",Space,Str "Header"] ] , [ Plain [Str "Left",Space,Str "Aligned"] ] @@ -81,7 +81,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) , [ Plain [Str "row"] ] , [ Plain [Str "5",Str ".",Str "0"] ] , [ Plain [Str "Here",Str "'",Str "s",Space,Str "another",Space,Str "one",Str ".",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows",Str "."] ] ] ] -, Para [Str "Table",Space,Str "without",Space,Str "column",Space,Str "headers:"] +, Para [Str "Table",Space,Str "without",Space,Str "column",Space,Str "headers",Str ":"] , Table [] [AlignRight,AlignLeft,AlignCenter,AlignRight] [0.0,0.0,0.0,0.0] [ [] , [] @@ -99,7 +99,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) , [ Plain [Str "1"] ] , [ Plain [Str "1"] ] , [ Plain [Str "1"] ] ] ] -, Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "column",Space,Str "headers:"] +, Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "column",Space,Str "headers",Str ":"] , Table [] [AlignCenter,AlignLeft,AlignRight,AlignDefault] [0.15,0.1375,0.1625,0.3375] [ [] , [] |