diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-10-31 11:30:56 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-10-31 11:31:35 -0700 |
commit | 5f9f458df394686405b525757d1b5ef3b4cbad17 (patch) | |
tree | 4c1eefd45f6fbefaef5c2902ef33958332639e99 /test/command | |
parent | b90a0fe3dc71ac798fefc734983d5c896226be2c (diff) | |
download | pandoc-5f9f458df394686405b525757d1b5ef3b4cbad17.tar.gz |
LaTeX reader: handle `%` comment right after command.
For example
\emph%
{hi}
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/4016.md | 47 | ||||
-rw-r--r-- | test/command/latex-command-comment.md | 7 |
2 files changed, 54 insertions, 0 deletions
diff --git a/test/command/4016.md b/test/command/4016.md new file mode 100644 index 000000000..69ad1c911 --- /dev/null +++ b/test/command/4016.md @@ -0,0 +1,47 @@ +``` +pandoc -t beamer +# Level 2 blocks + +<div class="columns"> +<div class="column" width="40%"> +## Block one +- Item +</div> +<div class="column" width="60%"> +## Block two +- Item +</div> +</div> +^D +\begin{frame}{% +\protect\hypertarget{level-2-blocks}{% +Level 2 blocks}} + +\begin{columns}[T] +\begin{column}{0.40\textwidth} +\begin{block}{Block one} + +\begin{itemize} +\tightlist +\item + Item +\end{itemize} + +\end{block} +\end{column} + +\begin{column}{0.60\textwidth} +\begin{block}{Block two} + +\begin{itemize} +\tightlist +\item + Item +\end{itemize} + +\end{block} +\end{column} +\end{columns} + +\end{frame} +``` diff --git a/test/command/latex-command-comment.md b/test/command/latex-command-comment.md new file mode 100644 index 000000000..640277f15 --- /dev/null +++ b/test/command/latex-command-comment.md @@ -0,0 +1,7 @@ +``` +pandoc -f latex -t native +\emph% +{hi} +^D +[Para [Emph [Str "hi"]]] +``` |