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

Pandoc issue when \include is the first thing in a lilypond environment #203

Open
uliska opened this issue Jun 22, 2018 · 5 comments
Open

Comments

@uliska
Copy link
Collaborator

uliska commented Jun 22, 2018

When the first element in a \begin{lilypond} environment is \include Pandoc scrambles the output by escaping everything, making the thing fail miserably.

This is a Pandoc parsing problem, and I've opened an issue there, this one here is just for reference.

@fedelibre
Copy link

@uliska The issue you mentioned eventually was solved: lilypond and ly environments will be treated as a verbatim environment starting from Pandoc 2.2.2.

I'm having this problem with Pandoc 2.1.2. I look forward to updating.

@fedelibre
Copy link

fedelibre commented Feb 8, 2019

Pandoc update in Fedora is taking some time. I'll see if I can test the .deb file distributed by Pandoc on Github.

@dbitouze
Copy link

dbitouze commented Feb 8, 2019

When the first element in a \begin{lilypond} environment is \include

BTW, I would advise against \include in a lilypond environment. What would be advised for this use case is \input which just, well, input the content of the specified file, while \include first does a \clearpage which, if desired, is better done manually before \begin{lilypond}.

@uliska
Copy link
Collaborator Author

uliska commented Feb 8, 2019

No, \include ist a proper LilyPond command that can"t be forbidden. That"s the source of the issue.

@dbitouze
Copy link

dbitouze commented Feb 8, 2019

OK, sorry for the noise.

uliska added a commit to uliska/pandoc that referenced this issue Aug 4, 2019
According to jgm#4725 (comment) not only the `lilypond` environment but also `ly` should be included in the verbatim list.

@jperon
jperon/lyluatex#203
jgm pushed a commit to jgm/pandoc that referenced this issue Aug 5, 2019
According to #4725 (comment) not only the `lilypond` environment but also `ly` should be included in the verbatim list.

@jperon
jperon/lyluatex#203
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

3 participants