You can use block or inline raw LaTeX to create annotations with the pdfcomment package

https://ctan.org/pkg/pdfcomment

(not the most reader-friendly manual in the world. You probably want to read the "Environments" and "Commands" parts before the "Options" part!)

You can also use a filter to wrap the text of a span or div with a certain class or attribute in the appropriate raw LaTeX. Basically you insert a raw latex element with `\pdfcomment[<options>]{` before the span content and one raw latex element with `}` after the content.

Den mån 5 juni 2023 15:13guild_navigator <markarichman@gmail.com> skrev:
What's the easiest way to insert a PDF comment attached to a block of markdown?

--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4e8c40a3-6229-4a3a-88cb-7c409e3931ddn%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/CAFC_yuTvtG8H2jvPG12ZCEhmdvMni5NY0Gs5i3WeTGOX_XRFqg%40mail.gmail.com.