View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024628 | mantisbt | markdown | public | 2018-07-24 05:39 | 2023-04-28 19:16 |
Reporter | zringele | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | assigned | Resolution | open | ||
Product Version | 2.12.1 | ||||
Target Version | 2.26.0 | ||||
Summary | 0024628: Double quotes " and lesser than sign < are shown as HTML entity within Markdown code blocks | ||||
Description | When Markdown option is enabled in MantisCoreFormatting plugin, HTML special chars within backticks are displayed as the corresponding entities.
Same issue with code blocks
| ||||
Tags | No tags attached. | ||||
related to | 0024241 | assigned | dregad | $g_html_valid_tags are not rendered if Markdown is enabled |
has duplicate | 0025379 | closed | atrol | Code in decription replacing html chars |
has duplicate | 0023206 | closed | dregad | Markdown shows html tags in code-block |
has duplicate | 0024240 | closed | dregad | XML in Markdown Code ist not rendered correct |
related to | 0025405 | closed | dregad | Links on summary, notes, and Details converted to other chars |
related to | 0022175 | closed | joel | Markdown converting '<' within backticks to & lt; |
related to | 0022246 | closed | joel | Markdown is converting '&' signs to (ampersand[amp;]) inside code block or backtick as well |
related to | 0022315 | assigned | joel | Markdown converts " to " within code blocks and inline code |
related to | 0024810 | confirmed | Markdown links/code always show HTML entities for Ampersand and Less-than sign | |
child of | 0022180 | new | Markdown issues following implementation in 0017920 |
|
|
zringele, I was not able to reproduce your problem with a fresh install of the latest stable MantisBT release (2.15.0 at the moment). If you are running an older version, I recommend that you upgrade to the latest (download from [1]). If after doing so the problem persists, do not hesitate to reopen the issue and provide detailed step-by-step instructions to reproduce the issue; the following additional information may also be useful:
|
|
|
|
The PR that fixes 0024241 fixes also this issue. |
|
Work-in-progress fix https://github.com/mantisbt/mantisbt/pull/1332 |
|
This is still an issue on brand new installations of Mantis as of November 2021. There's a plugin called Imatic Mantis Formatting that's supposed to fix the issue, but it's meant to replace the native Mantis formatting plugin, and it requires PHP 7.4 and Composer. I was running PHP 7.1 so I wrote a simpler plugin that just run alongside the native one and patches the problem. Here: OT Mantis Markdown Fixer. Hope that helps someone. |
|
This is really sad that we can't display formatted code in a bug tracking system. |
|
I switched to mantishub hosting and this issue - code blocks converting quotes and other things to HTML entities - is still persisting. Since I'm not self hosting I can't install the "OT Mantis Markdown Fixer" referenced above. Does anyone have suggestions or new workarounds for this in a hosted situation? Thank you. |
|