View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0022315 | mantisbt | markdown | public | 2017-02-04 09:49 | 2024-09-29 18:11 |
Reporter | uxmaster | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.1.1 | ||||
Target Version | 2.27.0 | Fixed in Version | 2.27.0 | ||
Summary | 0022315: Markdown converts " to " within code blocks and inline code | ||||
Description | This is caused by noncooperation between "Markdown Processing" and "Text Processing". | ||||
Steps To Reproduce | " in normal text " in inline code " in code block
| ||||
Tags | No tags attached. | ||||
related to | 0022246 | closed | joel | Markdown is converting '&' signs to (ampersand[amp;]) inside code block or backtick as well |
related to | 0024628 | closed | dregad | Double quotes " and lesser than sign < are shown as HTML entity within Markdown code blocks |
has duplicate | 0022407 | closed | atrol | Quotes in markdown |
related to | 0024810 | closed | dregad | Markdown links/code always show HTML entities for Ampersand and Less-than sign |
child of | 0022180 | new | Markdown issues following implementation in 0017920 |
Confirmed, seeing this as well |
|
This has been addressed already with this PR https://github.com/mantisbt/mantisbt/pull/1007 |
|
This one is really annoying, can't copy/paste code snippets anymore without having to manually replace |
|
This is not a bug in upstream, the bug is due to that Text processing process the text from the start:
And this is the PR https://github.com/mantisbt/mantisbt/pull/1007 |
|
@joel Which version of the MantisBT download do I use that has this fix? |
|
@ajtruckle this is an open PR, so there is no version you can download at the moment. |
|
Recent activity: 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. |
|
MantisBT: master 3aec6e68 2024-03-31 23:15 grummbeer Committer: dregad Details Diff |
Clean up markdown processing - Process input via Markdownparser and return the result, no further text processing. - During parsing, catch all <code> blocks and replace them with a hash value. - After the markup is returned from Parsedown, apply mentions and links - Restore the untouched <code> Blocks back in place. Fixes 0034040, PR https://github.com/mantisbt/mantisbt/pull/1976 Also fixes 0022315, 0022320, 0024241, 0024628, 0024810, 0022231, 0023738 Signed-off-by: Damien Regad <dregad@mantisbt.org> |
Affected Issues 0022231, 0022315, 0022320, 0023738, 0024241, 0024628, 0024810, 0034040, 0034393 |
|
mod - plugins/MantisCoreFormatting/MantisCoreFormatting.php | Diff File | ||
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php | Diff File |