From 4321a84ab2235e7f24c2331d767beffec295ee71 Mon Sep 17 00:00:00 2001 From: Jille Timmermans Date: Tue, 28 May 2024 14:41:14 +0200 Subject: [PATCH] fix: ssr treats all anchor links as external https://github.com/quasarframework/quasar-ui-qmarkdown/commit/556ff29af89b57aa58b74525506476fb405ddd6f made it skip the anchor expanding when we're in SSR mode. However, that means that a later check will mark it as an external link (which adds the external-link icon) This resolves the difference between the SSG (and probably SSR) and the browsers rendering --- ui/src/util/extendLink.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/util/extendLink.js b/ui/src/util/extendLink.js index 11a4f38..04ab8e6 100644 --- a/ui/src/util/extendLink.js +++ b/ui/src/util/extendLink.js @@ -19,6 +19,7 @@ export default function extendLink (md, { noopener = true, noreferrer = true }) } } else if (token.attrs[ hrefIndex ][ 1 ][ 0 ] === '/' + || token.attrs[ hrefIndex ][ 1 ][ 0 ] === '#' || token.attrs[ hrefIndex ][ 1 ].startsWith('..')) { token.attrSet('class', 'q-markdown--link q-markdown--link-local') }