Hi,
I cloned the Markwon repository since it hasn't been updated for about 4 years, and decided to update its core dependency commonmark-java from version 0.13.0 to 0.25.1.
My fork is here:
https://github.com/AlirezaGhanbarinia/Markdown
After the upgrade, I noticed an issue with AsteriskDelimiterProcessor and UnderscoreDelimiterProcessor β they correctly detect the delimiters (* and _), but the corresponding Markdown emphasis formatting is not applied in the output anymore.
Example:
private static Node parseMarkdown(String input) {
Parser parser = Parser.builder()
.customDelimiterProcessor(new AsteriskDelimiterProcessor())
.customDelimiterProcessor(new UnderscoreDelimiterProcessor())
.build();
return parser.parse(input);
}
Input:
This is *italic* and this is _also italic_
Behavior:
Delimiters are detected (confirmed via debugging in the processors)
But the emphasis rendering is not applied to the final rendered output
Expected:
Text between * and _ should be italicized as before with commonmark-java 0.13.0
I suspect there have been API or processing changes in commonmark-java between 0.13.0 and 0.25.1 that require adjustments to how custom delimiters are registered/handled.
Has anyone encountered this issue after upgrading to commonmark-java 0.25.x?
Thanks in advance for any help.