View Issue Details

IDProjectCategoryView StatusLast Update
0022320mantisbtmarkdownpublic2024-04-14 07:38
Reportervboctor Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version2.1.0 
Target Version2.27.0Fixed in Version2.27.0 
Summary0022320: Don't expand issue ids into URLs within code blocks
Description

At the moment, we expand them into URLs then escape them which shows the URL rather than a link.

TagsNo tags attached.
Attached Files
issue_links_in_code_blocks.png (156,086 bytes)   
issue_links_in_code_blocks.png (156,086 bytes)   

Relationships

child of 0022180 new Markdown issues following implementation in 0017920 

Activities

joel

joel

2017-03-06 23:00

developer   ~0055934

@vboctor - Could you provide steps to replicate the issue?

vboctoradmin

vboctoradmin

2017-03-06 23:07

administrator   ~0055935

This is an issue reference 0022320

This is an issue reference within a code block for #22320

This is an issue reference 0022320

joel

joel

2017-03-07 22:50

developer   ~0055976

PR: https://github.com/mantisbt/mantisbt/pull/1046

Related Changesets

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