Add missing % on command tests.

This prevented `--accept` from working properly.
This commit is contained in:
John MacFarlane 2021-09-21 10:16:45 -07:00
parent a1ca51c979
commit 5f7e7f539a
35 changed files with 51 additions and 52 deletions

View file

@ -1,5 +1,5 @@
```
pandoc -s -t markdown
% pandoc -s -t markdown
---
author: 'John Doe[^1]'
date: 2014

View file

@ -41,7 +41,7 @@
```
```
pandoc -f native -t markdown
% pandoc -f native -t markdown
[Para [SmallCaps [Str "hi"]]]
^D
[hi]{.smallcaps}

View file

@ -1,5 +1,5 @@
```
pandoc -t latex
% pandoc -t latex
| A happy pandoc user said "fix this bug please
| or I'll go crazy!"
^D

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t native
% pandoc -f latex -t native
\newcommand{\mycolor}{red}
\includegraphics[width=17cm]{\mycolor /header}

View file

@ -1,5 +1,5 @@
```
pandoc -t latex
% pandoc -t latex
Signatures
\

View file

@ -1,7 +1,7 @@
RST implicit internal links to headers:
```
pandoc -f rst
% pandoc -f rst
Years
-----
@ -12,7 +12,7 @@ Years_
```
```
pandoc -f rst
% pandoc -f rst
Years_
Years
@ -23,7 +23,7 @@ Years
```
```
pandoc -f rst
% pandoc -f rst
Years and years
---------------
@ -34,7 +34,7 @@ Years and years
```
```
pandoc -f rst
% pandoc -f rst
Years and *years*
-----------------

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t plain
% pandoc -f latex -t plain
$\alpha^2 \cdot \alpha^{2+3} \equiv \alpha^7$
^D
α² ⋅ α² ⁺ ³ ≡ α⁷

View file

@ -1,7 +1,7 @@
Results marker can be hidden in block attributes (#3706)
```
pandoc -f org -t native
% pandoc -f org -t native
#+begin_src r :exports results :colnames yes
data.frame(Id = 1:3, Desc = rep("La",3))
#+end_src
@ -48,7 +48,7 @@ pandoc -f org -t native
```
```
pandoc -f org -t native
% pandoc -f org -t native
#+begin_src R :exports none :colnames yes
data.frame(Id = 1:2, Desc = rep("La",2))
#+end_src

View file

@ -1,5 +1,5 @@
```
pandoc -f rst -t native
% pandoc -f rst -t native
.. include:: command/3880.txt
^D
[Para [Str "hi"]]

View file

@ -1,5 +1,5 @@
```
pandoc -f latex+raw_tex -t native
% pandoc -f latex+raw_tex -t native
\def\filename@area{foo:bar:baz}
\makeatletter
\graphicspath\expandafter{\expandafter{\filename@area}}%
@ -10,7 +10,7 @@ pandoc -f latex+raw_tex -t native
```
```
pandoc -f latex+raw_tex -t native
% pandoc -f latex+raw_tex -t native
\makeatletter
\newcommand\urlfootnote@[1]{\footnote{\url@{#1}}}
\DeclareRobustCommand{\urlfootnote}{\hyper@normalise\urlfootnote@}
@ -21,7 +21,7 @@ pandoc -f latex+raw_tex -t native
```
```
pandoc -f latex+raw_tex -t native
% pandoc -f latex+raw_tex -t native
\def\foo{bar}
\expandafter\bam\foo
^D

View file

@ -1,5 +1,5 @@
```
pandoc -f markdown -t native
% pandoc -f markdown -t native
<span title="1st line of text <br> 2nd line of text">foo</span>
<span title="1st line of text <br> 2nd line of text">foo</span>
^D

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t native
% pandoc -f latex -t native
\newcommand\arrow\to
$a\arrow b$
^D
@ -7,7 +7,7 @@ $a\arrow b$
```
```
pandoc -f latex -t native
% pandoc -f latex -t native
\newcommand\pfeil[1]{\to #1}
$a\pfeil b$
^D
@ -15,7 +15,7 @@ $a\pfeil b$
```
```
pandoc -f latex -t native
% pandoc -f latex -t native
\newcommand\fleche{\to}
$a\fleche b$
^D

View file

@ -1,5 +1,5 @@
```
pandoc -f markdown-implicit_figures
% pandoc -f markdown-implicit_figures
![image]
[image]: http://example.com/image.jpg {height=35mm}

View file

@ -1,5 +1,5 @@
```
pandoc -t beamer
% pandoc -t beamer
# Level 2 blocks
<div class="columns">

View file

@ -1,5 +1,5 @@
```
pandoc --wrap=preserve
% pandoc --wrap=preserve
This <!-- x > 0 --> works!
This <!-- x > 0 --> fails?
^D

View file

@ -1,5 +1,5 @@
```
pandoc -f mediawiki -t native
% pandoc -f mediawiki -t native
[https://domain.com/script.php?a=1&b=2&c=&d=4 open productname bugs]
[http://domain.com?a=. open productname bugs]

View file

@ -1,5 +1,5 @@
```
pandoc -t native
% pandoc -t native
| col1 | col2 |
| ---- | ---- |
| 1 | 2 |

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t native
% pandoc -f latex -t native
\documentclass{article}
\usepackage{hyperref}
\begin{document}

View file

@ -15,7 +15,6 @@ This has \textsc{small caps} in it.
^D
This has <span class="smallcaps">small caps</span> in it.
```
```
```
% pandoc --wrap=none -f latex -t markdown_strict+raw_html

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t native
% pandoc -f latex -t native
foo \include{command/bar}
^D
[Para [Str "foo"]
@ -7,7 +7,7 @@ foo \include{command/bar}
```
```
pandoc -f latex -t native
% pandoc -f latex -t native
foo \input{command/bar}
^D
[Para [Str "foo",Space,Emph [Str "hi",Space,Str "there"]]]

View file

@ -1,5 +1,5 @@
```
pandoc -t latex
% pandoc -t latex
---
header-includes:
- \newcommand{\blandscape}{\begin{landscape}}

View file

@ -1,5 +1,5 @@
```
pandoc -t beamer
% pandoc -t beamer
:::: { .columns }
::: { .column align=center }
:::

View file

@ -1,5 +1,5 @@
```
pandoc -f native -t rst
% pandoc -f native -t rst
[Div ("",["warning"],[])
[Div ("",["title"],[])
[Para [Str "Warning"]]
@ -10,7 +10,7 @@ pandoc -f native -t rst
Hi
```
```
pandoc -f native -t rst
% pandoc -f native -t rst
[Div ("",["unknown"],[])
[Para [Str "Hi"]]]
^D

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t native
% pandoc -f latex -t native
\l
^D
[Para [Str "\322"]]

View file

@ -1,5 +1,5 @@
```
pandoc -t rst
% pandoc -t rst
<unknown>
x
^D

View file

@ -1,12 +1,12 @@
```
pandoc -t asciidoc
% pandoc -t asciidoc
[foo *bar*]{.small .red key=val}
^D
[.small .red]#foo _bar_#
```
```
pandoc -f html -t asciidoc
% pandoc -f html -t asciidoc
<small>SMALL</small>
^D
[.small]#SMALL#

View file

@ -1,5 +1,5 @@
```
pandoc -f org -t rst --columns=78
% pandoc -f org -t rst --columns=78
| Option | Meaning |
|--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| =<= | Left alignment, additional characters are added to the right (default for string). |

View file

@ -1,5 +1,5 @@
```
pandoc -f rst -t native
% pandoc -f rst -t native
.. include:: command/5182.txt
^D
[CodeBlock ("",["python","numberLines"],[]) "def func(x):\n return y"]

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t html
% pandoc -f latex -t html
\num{12345,67890}
\num{1+-2i}

View file

@ -1,5 +1,5 @@
```
pandoc -t native
% pandoc -t native
[@buchanan]
(@foo)

View file

@ -1,5 +1,5 @@
```
pandoc -t latex
% pandoc -t latex
"This is some text in quotes. Another paragraph by the same speaker follows. The first paragraph should have no close quote.
"The second paragraph should have open and close quotes."

View file

@ -1,5 +1,5 @@
```
pandoc -f html -t asciidoc
% pandoc -f html -t asciidoc
<a href="https://example.com/show.cgi?id=hi--there--everyone">https://example.com/show.cgi?id=hi--there--everyone</a>
^D
link:++https://example.com/show.cgi?id=hi--there--everyone++[]

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t markdown
% pandoc -f latex -t markdown
\documentclass{article}
\newenvironment{flubble}{FOO}{BAR}
\begin{document}

View file

@ -1,19 +1,19 @@
```
pandoc -t html --ascii
% pandoc -t html --ascii
äéıå
^D
<p>&#xE4;&#xE9;&#x131;&#xE5;</p>
```
```
pandoc -t latex --ascii
% pandoc -t latex --ascii
äéıå
^D
\"{a}\'{e}\i\r{a}
```
```
pandoc -t man --ascii
% pandoc -t man --ascii
äéıå
^D
.PP
@ -21,7 +21,7 @@ pandoc -t man --ascii
```
```
pandoc -t ms --ascii
% pandoc -t ms --ascii
äéıå
^D
.LP
@ -29,7 +29,7 @@ pandoc -t ms --ascii
```
```
pandoc -t docbook --ascii
% pandoc -t docbook --ascii
äéıå
^D
<para>
@ -38,14 +38,14 @@ pandoc -t docbook --ascii
```
```
pandoc -t jats --ascii
% pandoc -t jats --ascii
äéıå
^D
<p>&#xE4;&#xE9;&#x131;&#xE5;</p>
```
```
pandoc -t markdown-smart --ascii
% pandoc -t markdown-smart --ascii
"äéıå"
^D
&ldquo;&auml;&eacute;&imath;&aring;&rdquo;

View file

@ -1,5 +1,5 @@
```
pandoc -f latex -t native
% pandoc -f latex -t native
\emph%
{hi}
^D