You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
### Bug Fixes
6
6
7
7
- fix: Load the `string` module by its own path in the Bitbucket module, so another extension's module cannot be used instead. (#57)
8
+
- fix: Keep a platform URL in a navigation link target, and a reference in the social metadata, as plain text. A reference in a navigation title or entry text stays plain text as well. (#58)
description: "A description that holds a reference to #1, which Quarto puts in a meta tag."
4
+
about:
5
+
template: jolla
6
+
links:
7
+
- icon: github
8
+
text: "Profile"
9
+
href: "https://github.com/mcanouil"
10
+
---
11
+
12
+
The `about` links and the social metadata go through the same inline snippets as a navigation entry.
13
+
14
+
The `<meta property="og:description">` content must keep the plain text `#1`, without a platform badge.
15
+
16
+
The link under the title must keep `https://github.com/mcanouil` as its target.
17
+
Quarto never substitutes an `about` link target, because it registers the target under one key and reads it back under another, so this one guards against a future change rather than a past defect.
18
+
19
+
The `<meta name="description">` tag is a separate case that this test does not cover.
20
+
Pandoc builds it from the document metadata, not from an inline snippet, so it still takes the badge text.
This site checks that the filter does not rewrite the `href` of a navigation entry.
6
+
7
+
The navbar has a "Profile" item and a `tools` entry whose `href` is `https://github.com/mcanouil`.
8
+
Both must keep that URL.
9
+
Before the fix, each one took the link text and the platform badge text joined together as its target, because Quarto reads the rendered snippet back with `innerText`.
10
+
11
+
The "Sponsor" item points at `https://github.com/sponsors/mcanouil?o=esb`.
12
+
It has two path segments and a query, so no pattern matches it, and it is a control for the other two.
13
+
14
+
The "Issue #1" item shows the cost of the fix.
15
+
A navigation entry registers its text and its href under one identifier prefix, so the text keeps its reference as plain text.
16
+
17
+
Body text must still convert.
18
+
The following are links: #1, mcanouil/quarto-cli#2, and <https://github.com/mcanouil>.
19
+
20
+
The page footer holds references as well, and those must still convert, because Quarto inserts block entries with `innerHTML`.
0 commit comments