We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original observed behaviour:
A simple HTML snipet like this:
<p> <a id="test1" href="#test2">test text1</a> </p> <p> <a id="test2" href="#test1">link to text test1</a> </p>
when converted with this command:
pandoc -s --pdf-engine=xelatex -o tmp.pdf tmp.html
fails to produce working links in the PDF.
Per JGM's helpful analysis of my problem:
The issue is in the LaTeX writer and can be shown by converting native content:
% pandoc -f native -t latex [Link ("test2",[],[]) [Str "link",Space,Str "to",Space,Str "text",Space,Str "test1"] ("#test1","")] \protect\hyperlink{test1}{link to text test1}
So here the anchor to test2 is lost. But the LaTeX writer CAN handle this sort of thing, as shown by:
% pandoc -f native -t latex [Span ("test2",[],[]) [Str "hi"] ] \protect\hypertarget{test2}{}{hi}
The text was updated successfully, but these errors were encountered:
be9e93d
Thanks for the quick fix. I confirmed this patch fixed my original problem.
Sorry, something went wrong.
No branches or pull requests
Original observed behaviour:
A simple HTML snipet like this:
when converted with this command:
pandoc -s --pdf-engine=xelatex -o tmp.pdf tmp.html
fails to produce working links in the PDF.
Per JGM's helpful analysis of my problem:
The issue is in the LaTeX writer and can be shown by converting
native content:
% pandoc -f native -t latex [Link ("test2",[],[]) [Str "link",Space,Str "to",Space,Str "text",Space,Str "test1"] ("#test1","")] \protect\hyperlink{test1}{link to text test1}
So here the anchor to test2 is lost. But the LaTeX writer CAN
handle this sort of thing, as shown by:
% pandoc -f native -t latex [Span ("test2",[],[]) [Str "hi"] ] \protect\hypertarget{test2}{}{hi}
The text was updated successfully, but these errors were encountered: