D
D
DVoropaev2022-02-28 15:03:53
Markdown
DVoropaev, 2022-02-28 15:03:53

How to translate .markdown with russian characters to pdf?

$ cat ./markdown_example.md
#Заголовок
Списрок:
* Элемент 1
* Элемент 2
* Элемент 3
$ pandoc --latex-engine=xelatex -V mainfont="Liberation Serif" ./markdown_example.md -o markdown_example.pdf
pandoc: Error producing PDF from TeX source.
! Text line contains an invalid character.
l.48 \section{^^W

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-02-28
@vabka

Judging by the manual, you do not need a latex-engine, but a pdf-engine, which is what the pandok actually swears at (says that he was waiting for latex at the entrance):

pandoc MANUAL.txt --pdf-engine=xelatex -o example13.pdf

https://pandoc.org/demos.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question