-
Just an observation, as this is a pandoc related issue and not something quarto can control. When I put my twitter handle _anatexis_1 in the navbar in _quarto.yml, it got rendered to https://twitter.com/anatexis (no underscores!). I found a work-around with this:
the Footnotes
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Your URL is not valid anyway even for a browser. This being said, the issue here is that the href value is parsed as markdown, i.e. "twitter.com/anatexis" (where "anatexis" is italicise), but because it makes no sense in "src" field of a link, the |
Beta Was this translation helpful? Give feedback.
-
I believe this is the same issue as
@dragonstyle we discussed about this is you recall. This is because of our markdown parsing when processing navbar item. |
Beta Was this translation helpful? Give feedback.
-
For the time being, here is a workaround for you to get the desired behaviour. In twitter: "`https://twitter.com/_anatexis_`{=html}" In navbar:
right:
- icon: twitter
href: "{{< var twitter >}}" |
Beta Was this translation helpful? Give feedback.
@anatexis here's a simpler solution:
The syntax is a bit ugly, but what's happening here is that we need to tell Pandoc to not process your underlines as Markdown (hence the backticks for a raw inline syntax), but we also need quarto to recognize the URL as a "real URL", and that happens as text, and is a check of the beginning of the string.