Nowell Strite  committed 49519e6

Updated wiki user links processing to strip out paragraph tags that should not be included in our output.

  • Participants
  • Parent commits 6375483
  • Branches wiki-user-links

Comments (0)

Files changed (1)

File atlassian-jira-markdown-plugin/src/main/java/com/atlassian/labs/markdown/jira/

         // in order to get full user profile link rendering we end up using the wiki render to turn [~xxxxx] into a user profile link
         // freaky eh?  wiki in markup inside wiki?
         String wikiLink = rendererManager.getRendererForType(AtlassianWikiRenderer.RENDERER_TYPE).render(markup, issueRenderContext);
+        // The wiki renderer sees that we are only rendering the name link,
+        // and so it wraps it in paragraph tags which we do not want.
+        wikiLink = wikiLink.replaceAll("<p>", "");
+        wikiLink = wikiLink.replaceAll("</p>", "");