There is 1 update.
 
 
Cristal / cid:jira-generated-image-avatar-13545807-f3ee-4b96-8b09-4b7a51bc08b2 CRISTAL-537 Open

Internal and external links are not distinguished

 
View issue   ·   Add comment
 

1 update

 
cid:jira-generated-image-avatar-6058540e-bd23-4ed4-aea8-7eaa5cd96c64 Changes by Clément Eraud on 24/Jun/25 11:01
 
Description: h2. Reproduction steps

# edit a page with blocknote
# add two links: one internal, one external
# observe if there is a visual clue for the external link
# save
# observe if there is a visual clue for the external link in view mode

h2. Expected

In the 3 and 5, a visual clue indicates the external link

h2. Actual

In the 3 and 5 the visual clue is missing
h2. Status

Waiting for an answer on https://github.com/TypeCellOS/BlockNote/issues/1118#issuecomment-2996720750
h2. Analysis

In edit mode, this is because it was never introduced in Blocknote.
In view mode, this is because the markdown render indicates only a class on internal link, while the css class {{wikiexternallink}} is expected on external link (the style already exists).

{code:html}
<p>
    <span class="wikilink"><a href="http://localhost:15680/xwiki/bin/view/Sandbox/TestPage2">internal link</a></span>
</p>
<p>
    <span class="wikiexternallink"><a href="https://mleduc.xyz">external link</a></span>
</p>
{code}