How to define a link renderer and preserve renderer for relative references? #273
Unanswered
mrwunderbar666
asked this question in
Q&A
Replies: 1 comment
-
@mrwunderbar666 To change how direct and indirect links are rendered without chaning how relative references are handled, you can redefine the \renewcommand\markdownLaTeXRendererDirectOrIndirectLink[4]{%
\href{#3}{#1}%
} However, the default definitions may change at any time. Specifically, the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been trying to figure this out, but I am stuck. I would like to change the default behaviour of link renderering.
Suppose I have the following settings of the markdown package
\usepackage[footnotes=true, underscores=false, codeSpans=true, definitionLists, smartEllipses, fencedCode, contentBlocks, pipeTables, tableCaptions, relativeReferences=true, citations]{markdown}
And I have a link in my text as follows
Then the default behaviour is to turn the URL into a footnote and the figure reference to a clickable number.
I would like to change that so it mimics the default behaviour of Github or pandoc. The URL is hidden and the text becomes clickable.
I tried to define the settings as following:
This works as intended, however, it breaks cross references to figures and tables. These disappear after the change and are rendered verbatim. Something like "And here is Figure #fig:bla"
How can I preserve the default behaviour for relative references?
Beta Was this translation helpful? Give feedback.
All reactions