Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raw tex not filtered if it includes \begin or \end #3754

Closed
zeeMonkeez opened this issue Jun 21, 2017 · 1 comment
Closed

raw tex not filtered if it includes \begin or \end #3754

zeeMonkeez opened this issue Jun 21, 2017 · 1 comment

Comments

@zeeMonkeez
Copy link

---
title: test
header-includes:
- \newcommand{\benv}{\begin{env}}
- \newcommand{\eenv}{\end{env}}
- \newcommand{\tenv}{test}
---

\benv
env1
\eenv

\begin{env}
env2
\end{env}

\tenv

Calling pandoc rt.md -o rt.html produces:

<p>\benv env1 \eenv</p>

Expected output:

<p>env1</p>

I would not expect the command definition of \benv and \eenvto be parsed, as that would be nontrivial, to produce output consistent with the \begin{env}…\end{env}. Instead, I would expect output consistent with behaviour from \tenv.

pandoc compiled from ea1724e.

@jgm
Copy link
Owner

jgm commented Jun 22, 2017 via email

@jgm jgm closed this as completed Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants