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

Go beyond \section when using --shift-heading-level-by=-1 #26

Open
Fnuxus opened this issue May 22, 2021 · 0 comments
Open

Go beyond \section when using --shift-heading-level-by=-1 #26

Fnuxus opened this issue May 22, 2021 · 0 comments

Comments

@Fnuxus
Copy link

Fnuxus commented May 22, 2021

I frequently use this command for converting mediawiki-encoded text:

pandoc input.txt -f mediawiki -t latex -o output.tex

The output is included in a scrbook class book project.

Problem: pandoc converts =heading= to \section, but I need it to be \chapter instead.

If I change the input to this:

pandoc input.txt -f mediawiki -t latex --shift-heading-level-by=-1 -o output.tex

the =heading= encoding loses its encoding altogether.

Expected behaviour: If --shift-heading-level-by=-1 ist used, =heading= should be converted to \chapter, --shift-heading-level-by=-2 should be converted to \part.

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

1 participant