--- lang: fa dir: rtl title: "عنوان ارائه" author: "نام دانشجو" date: "تاریخ" institute: "نام دانشگاه" theme: "metropolis" --- # فهرست 1. [شماره ۱](#شماره-۱) 2. [شماره ۲](#شماره-۲) # شماره ۱ متنی در مورد شماره ۱ # شماره ۲ متنی در مورد شماره ۲
And I'm trying to convert it to PDF, using this command:
pandoc pres.md -t beamer -o pres.pdf --pdf-engine=xelatex -V mainfont="Sahel"
But there are two problems.
- Not everything goes RTL.
As you can see, the author, date, and institute elements are in the correct direction, but the title isn't. Also, list elements in Table of Contents aren't in the right direction:
But I thought specifying
dir: rtl would solve that. It does make a change when I add
dir: rtl, but it's not working as expected.
- Links in Table of Contents don't work
In the English version of the same markdown file, everything works. But when I change it to Persian, links don't work. And when I open the PDF file with
mupdf, the moment I change the page to ToC,
mupdf gives out this warning:
warning: undefined link destination warning: ... repeated 2 times...
How can I fix these issues?