diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Readers/Markdown.hs | 2 | ||||
-rw-r--r-- | tests/tables.latex | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/tests/Tests/Readers/Markdown.hs b/tests/Tests/Readers/Markdown.hs index 709026d92..f7d07f6cd 100644 --- a/tests/Tests/Readers/Markdown.hs +++ b/tests/Tests/Readers/Markdown.hs @@ -149,6 +149,8 @@ tests = [ testGroup "inline code" , "emph with spaced strong" =: "*x **xx** x*" =?> para (emph ("x" <> space <> strong "xx" <> space <> "x")) + , "intraword underscore with opening underscore (#1121)" =: + "_foot_ball_" =?> para (emph (text "foot_ball")) ] , testGroup "raw LaTeX" [ "in URL" =: diff --git a/tests/tables.latex b/tests/tables.latex index 1a87c4f71..eb665204d 100644 --- a/tests/tables.latex +++ b/tests/tables.latex @@ -1,6 +1,7 @@ Simple table with caption: \begin{longtable}[c]{@{}rlcl@{}} +\caption{Demonstration of simple table syntax.}\\ \toprule\addlinespace Right & Left & Center & Default \\\addlinespace @@ -12,8 +13,6 @@ Right & Left & Center & Default 1 & 1 & 1 & 1 \\\addlinespace \bottomrule -\addlinespace -\caption{Demonstration of simple table syntax.} \end{longtable} Simple table without caption: @@ -35,6 +34,7 @@ Right & Left & Center & Default Simple table indented two spaces: \begin{longtable}[c]{@{}rlcl@{}} +\caption{Demonstration of simple table syntax.}\\ \toprule\addlinespace Right & Left & Center & Default \\\addlinespace @@ -46,13 +46,12 @@ Right & Left & Center & Default 1 & 1 & 1 & 1 \\\addlinespace \bottomrule -\addlinespace -\caption{Demonstration of simple table syntax.} \end{longtable} Multiline table with caption: \begin{longtable}[c]{@{}clrl@{}} +\caption{Here's the caption. It may span multiple lines.}\\ \toprule\addlinespace \begin{minipage}[b]{0.13\columnwidth}\centering Centered Header @@ -86,8 +85,6 @@ Here's another one. Note the blank line between rows. \end{minipage} \\\addlinespace \bottomrule -\addlinespace -\caption{Here's the caption. It may span multiple lines.} \end{longtable} Multiline table without caption: |