The search API "expand=renderedField" option bring HTML with Markdown if the External Link text has bold word

XMLWordPrintable

    • 4
    • Severity 3 - Minor

      Issue Summary

      If the external link( hyperlink) has a Bold word, The Issue editor interprets it wrong and saves it in the DB with a markdown tag thus causing search API with expand=renderedFields option to bring malformed HTML. 

      Steps to Reproduce

      1. Create a text in the description field
      2. Add a link to the entire text by highlighting and clicking the link button
      3. Then select a particular word within the link and bold that word
      4. Call "expand=renderedField" parameter when calling the rest/api/3/search (or rest/api/2/search) API
      5. The API will return HTML with a markdown tag.

      Expected Results

      The front end should interpret and save the information properly (without markdown tags) in DB so that API could bring HTML correctly during the rendering option.

      Actual Results

      API result

      HTML translation

      Workaround

      The workaround is essentially to create multiple hyperlinks with space between hyperlinks in a single content. 

      For instance, it would look something similar to this (content: link with/BOLD/text each have their own hyperlinks):

      This particular issue when called via API with "expand=renderedFields" parameter will render the following:

            Assignee:
            Unassigned
            Reporter:
            Waqas Mahboob
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: