View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0030919 | mantisbt | markdown | public | 2022-08-24 10:15 | 2024-03-27 20:20 |
Reporter | hotzeplotz | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Target Version | 2.26.0 | Fixed in Version | 2.26.0 | ||
Summary | 0030919: Markdown processing code cleanup | ||||
Description | Initially reported by @hotzeplotz in 0030791:0066865. 1. cleanup quotings
This is related to 0022190 and https://github.com/mantisbt/mantisbt/pull/1004 (especially the last comment about emails and inline-styles). For decades the opening arrow 2. cleanup tables
Parsedown provide a helpfull method where all "marked" elements accessible. Use it. see https://github.com/mantisbt/mantisbt/compare/master...grummbeer:mantisbt:markdown-cleanup-02-tables 3. cleanup table tests
4. cleanup the blockHeader partThe Tests
The Tests todo: Clarify what a valid issue mention is.
Modify the regex to meet the mantis requirements. 5. cleanup formatting process
Parsedown provides a usefull method called After that and merging all parts together the whole part looks very nice and its a huge impact for user experience. The branches are all independent but could make it a cascading series. What do you think about? I am not experienced in contributing, so this may look strange to you, but I have no idea what the right approach is. todo
Fixing this todos would be a really nice finishing point. | ||||
Tags | No tags attached. | ||||
|
|
PR https://github.com/mantisbt/mantisbt/pull/1841 has just been merged (fixing 0022190). @hotzeplotz, looking forward to reviewing the follow-up PR(s) with the remaining points ! |
|
|
|
step 4. cleanup the blockHeader part => PR https://github.com/mantisbt/mantisbt/pull/1929 |
|
Fixes for steps 1, 2 and 3 were included in Release 2.26.0, so I'm resolving this issue. Follow up on remaining points are tracked in 0034040 |
|
MantisBT: master 3faaae32 2022-09-03 05:54 Details Diff |
Markdown processing code cleanup, step 1 This addresses step 1 (cleanup quotings) of issue 0030919. Merge PR https://github.com/mantisbt/mantisbt/pull/1841 |
Affected Issues 0022190, 0030919 |
|
mod - plugins/MantisCoreFormatting/MantisCoreFormatting.php | Diff File | ||
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php | Diff File | ||
add - plugins/MantisCoreFormatting/files/markdown.css | Diff File | ||
mod - plugins/MantisCoreFormatting/tests/MarkdownTest.php | Diff File | ||
MantisBT: master a3211026 2023-01-07 20:57 grummbeer Committer: community Details Diff |
Markdown: simplify table processing Overriding Parsedown's element() method which gives access to all marked elements makes it easy to change the properties/attributes of an element just before it is converted into HTML markup. This addresses steps 2 and 3 (cleanup tables and tests) of issue 0030919. Merge PR https://github.com/mantisbt/mantisbt/pull/1848 Co-authored-by: grummbeer <kde@streber24.de> Co-authored-by: Damien Regad <dregad@mantisbt.org> |
Affected Issues 0030919 |
|
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php | Diff File | ||
mod - plugins/MantisCoreFormatting/tests/MarkdownTest.php | Diff File |