Migrate InlineDiffFilter to comrak
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
InlineDiff is a very straightforward filter that converts any content in {+ ... +} and {- ... -} tags to text highlighted in green or red. However, since its just a filter and not natively supported by the parser, it does not behave like other marks, like bold.
A comparison between bold and inline diff:
| Case | Bold | Inline Diff | ||||
|---|---|---|---|---|---|---|
|
Markdown |
Output |
Markdown |
Output |
Expectation |
||
| Multi-line support |
|
bold in two lines |
|
{+inline diff in two lines+} |
inline diff in two lines |
|
| Mixing with other marks inside the current mark |
|
bold italic |
|
{+italic diff+} |
italic diff |
|
| Mixing with other marks outside the current mark |
|
bold italic |
|
italic diff |
italic diff |
|
| Source maps | Supported | Not supported | ||||
Edited by 🤖 GitLab Bot 🤖