Since you are converting to pdf, you could try some LaTeX, e.g.:
\begin{center}{Your text here}\end{center}


On Tuesday, 11 October 2022 at 17:39:03 UTC+3 richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
Hello!

I'm trying to center some text in my markdown document. I've tried:
```
<p align="center"> Sample Text </p>
<center> Sample Text </p>
```
And used `pandoc test.md -o test.pdf` to compile my document. However, the text shows up as left-aligned and not centered.

How may I resolve this issue?

Thank you.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2d6fdf96-2731-4970-a9eb-0f0d89e92c37n%40googlegroups.com.