thanks a lot. adding -V boxlinks fix it. here is reference if anyone needs it: https://github.com/jgm/pandoc/issues/8226 

On Thu, Sep 8, 2022 at 12:10 PM gnpan <g.panayotou@gmail.com> wrote:
Either update to 2.19.2 or add -V boxlinks to your command. 

On Thursday, 8 September 2022 at 04:58:27 UTC+3 Siddharth Jain wrote:
here is the full command I am running

pandoc index.md \
-V mainfont="Arial Unicode MS" \
-V colorlinks=true \
-V linkcolor=blue \
-V urlcolor=red \
-V toccolor=gray \
--lua-filter=../filters/diagram-generator.lua --pdf-engine=xelatex -o index.pdf

here is my pandoc version:

➜   pandoc -v
pandoc 2.19
Compiled with pandoc-types 1.22.2, texmath 0.12.5.2, skylighting 0.13,
citeproc 0.8.0.1, ipynb 0.2, hslua 2.2.1
Scripting engine: Lua 5.4
User data directory: /Users/sijain2/.local/share/pandoc
Copyright (C) 2006-2022 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.

output of pandoc -D latex is attached to this email

I don't have any preamble in my markdown file.

thanks

--
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/654477a4-770b-47d9-b8f4-d7abd486b3f5n%40googlegroups.com.

--
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/CAPqV3pSsH0XrnjHxs6QBMB5Xfd6qKSxbreLVgD6Wkpid4di19Q%40mail.gmail.com.