flexmark-java
flexmark-java copied to clipboard
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.
## Describe the Bug When using the [Attributes extension](https://github.com/vsch/flexmark-java/wiki/Attributes-Extension), attributes cannot be applied to an `img` tag, instead they are always applied to the parent tag. ### Reproducing Note: code...
I have a markdown text that may contain content like "[abc][def]\(url\)". In fact, "[abc]" refers to some custom expressions, just think of it as the Text type. "[def]\(url\)" is a...
When I call the render function of HtmlRenderer.class in flexmark-java 0.64.6, two asterisks are ignored and two asterisks are rendered to wrong strong label. The green content failed to render,...
Commonmark-java has seen quite some releases the past years: https://github.com/commonmark/commonmark-java/releases On the other hand flexmark-java (a fork of commonmark-java) was not released since more than 2 years and has seen...
## Question I'm currently using `flexmark-all:0.64.8` in my project, which transitively includes `jsoup:1.15.4`. I would like to upgrade jsoup to the latest version `1.21.2` for security patches and new features....
``` import cn.hutool.core.io.FileUtil; import com.vladsch.flexmark.docx.converter.DocxRenderer; import com.vladsch.flexmark.ext.definition.DefinitionExtension; import com.vladsch.flexmark.ext.emoji.EmojiExtension; import com.vladsch.flexmark.ext.footnotes.FootnoteExtension; import com.vladsch.flexmark.ext.gfm.strikethrough.StrikethroughSubscriptExtension; import com.vladsch.flexmark.ext.ins.InsExtension; import com.vladsch.flexmark.ext.superscript.SuperscriptExtension; import com.vladsch.flexmark.ext.tables.TablesExtension; import com.vladsch.flexmark.ext.toc.SimTocExtension; import com.vladsch.flexmark.ext.toc.TocExtension; import com.vladsch.flexmark.ext.wikilink.WikiLinkExtension; import com.vladsch.flexmark.parser.Parser; import com.vladsch.flexmark.util.ast.Node; import...