vsch / flexmark-java

CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
BSD 2-Clause "Simplified" License
2.21k stars 260 forks source link

Fix handling of emphasis + strong #580

Open david-waltermire opened 1 year ago

david-waltermire commented 1 year ago

Adjusted the use of delimiters to allow the triple case to work per CommonMark.

The original logic didn't support the case where both the opener and closer are multiples of 3 to allow emphasis.

I added support for use of multipleUse to drive which amount is taken first.

Resolves #557