Uploaded image for project: 'Cristal'
  1. Cristal
  2. CRISTAL-566

Internal links with markup in the text are badly parsed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.20
    • 0.13
    • Markdown
    • Unit
    • Unknown
    • N/A
    • N/A

    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",
          );
        })
      

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: