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

stripnl=false is ignored #6

Closed
h-2 opened this issue Mar 26, 2020 · 3 comments
Closed

stripnl=false is ignored #6

h-2 opened this issue Mar 26, 2020 · 3 comments

Comments

@h-2
Copy link

h-2 commented Mar 26, 2020

The minted-option stripnl=false prevents newlines at the end of code snippets to be stripped. I rely on this heavily to align snippets that are shown side-by-side and should have certain lines appear on the same height.

shiki-latex seems to ignore this option and always strips trailing blank lines.

@h-2
Copy link
Author

h-2 commented Mar 26, 2020

mathescape=true and texcomments are also not handled, yet. I guess the second one is a superset of the first, so I would maybe not need the first one if the second one were available...

@leafac
Copy link
Member

leafac commented Mar 26, 2020

I fixed stripnl in 1.1.6 and opened #8 to address mathescape, texcomments, and so forth. As it turns out, minted is calling the syntax highlighter with command-line options that we can pick up and do something about (unlike what happens with theme selection, which minted is hiding under LaTeX wizardry).

@leafac
Copy link
Member

leafac commented Mar 30, 2020

@h-2: I added support for mathescape in 1.2.0. More options to come…

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