View Issue Details

IDProjectCategoryView StatusLast Update
0022545mantisbtmarkdownpublic2019-04-28 11:19
ReporterEnno Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.2.1 
Target Version2.2.3Fixed in Version2.2.3 
Summary0022545: Markdown still converting '& amp;' to & and '& lt;' to <
Description

I installed 2.2.1 hoping that issue 0022246 would have solved this, but I still see markdown converting symbols in code blocks to HTML entities.

Steps To Reproduce
if (a && b) { return a < b ? "less" : "greater"; }
TagsNo tags attached.

Relationships

related to 0022246 closedjoel Markdown is converting '&' signs to (ampersand[amp;]) inside code block or backtick as well 
related to 0024240 closeddregad XML in Markdown Code ist not rendered correct 

Activities

Enno

Enno

2017-03-20 04:58

reporter   ~0056123

Additionally, spelling out the html entity & in the title of this issue makes it show up as an ampersand &.

dregad

dregad

2017-03-31 17:06

developer   ~0056306

Fixed via PR https://github.com/mantisbt/mantisbt/pull/1069

Enno

Enno

2019-04-28 05:55

reporter   ~0062008

I'm still seeing conversions in code blocks, as in this example (Version 2.21.0):

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre_DAV_Exception_Forbidden</s:exception>
  <s:message>Permission denied to overwrite node</s:message>
</d:error>
atrol

atrol

2019-04-28 07:46

developer   ~0062009

The issue was fixed in 2.2.3, but there is a regression starting from 2.12.1, see 0024240 and related issues.

Related Changesets

MantisBT: master-2.2 ca40d68e

2017-03-25 14:51

Joel C. Llano

Committer: dregad


Details Diff
Fix markdown with Indented-code-block

Fixes 0022545

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Affected Issues
0022545
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php Diff File