This issue has been created
 
 
Cristal / cid:jira-generated-image-avatar-195c6241-34d1-427b-baac-d771befd2bf5 CRISTAL-566 Open

Internal links with markup in the text are badly parsed

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6c4a3aa9-fad8-448b-b4a2-3ca6b79353a0 Manuel Leduc created this issue on 20/Jun/25 10:26
 
Summary: Internal links with markup in the text are badly parsed
Issue Type: cid:jira-generated-image-avatar-195c6241-34d1-427b-baac-d771befd2bf5 Bug
Affects Versions: 0.13
Assignee: Unassigned
Components: Markdown
Created: 20/Jun/25 10:26
Priority: cid:jira-generated-image-static-major-257fe771-8312-4677-a9b9-e8dc73da6e5f Major
Reporter: Manuel Leduc
Description:

Reproduction steps

  1. Edit a page, make some text bold or italic, select it and insert a link to a wiki page
  2. save and observe the page in view mode

Expected

A link is present and its text styled

Actual

The link failed to be parsed and the content below is presented in the page

[[My text *with italic*|The.Reference]]

Reproduction unit test

  it("renders link with italic", () => {
    const defaultMarkdownRenderer = initComponent();
    expect(defaultMarkdownRenderer.render(`[[*italic*|Main.WebHome]]`)).toBe(
      "<p><a href='https://cristal.xwiki.org'><em>italic</em>Reference</a></p>\n",
    );
  })