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.
https://github.com/vsch/flexmark-java/blob/c0313d67e0146292a10d04eb8944faff991579e9/flexmark/src/main/java/com/vladsch/flexmark/html/LinkResolverFactory.java#L13 The methods `getAfterDependents` and `getBeforeDependents` return `null` in a number of cases. Rather than forcing a `null` implementation detail upon implementations, perhaps a `default` implementation would be worthwhile? Having...
When I try to parse the following markdown: This is some text ```javascript {title="Title" caption="Caption"} console.log("Whatever") ``` I get the FencedCodeBlock in the AST for the code block, but the...
**Is your feature request related to a problem? Please describe.** I am trying to pass a parameter to resolveLink method in MyType implementd by LinkResolver, in order to obtain the...
Followup for #407: With newly landed fixes, the following example works correctly in `ParserEmulationProfile.MULTI_MARKDOWN`: ``` [![][moon]](/uri) [moon]: moon.jpg ``` yields: ``` ``` However, MultiMarkdown format image references with width and...
## Question Is it possible to render a Node document using markdown syntax ? ``` Parser parser = Parser.builder(options).build(); MarkdownRenderer renderer = MarkdownRenderer.builder(options).build(); // You can re-use parser and renderer...
hello, sorry to bother you. when I convert md to pdf by PdfConverter.java ,it mentions: com.openhtmltopdf.util.JDKXRLogger log 警告:IO prolem for http://.......and the pdf result does not contains the picture. my...
**Describe the bug** As far as I can tell, Jekyll includes (`{% include foo %}`) aren't tested and don't work actually work. `transferReferences` work, but the content isn't actually moved...
I'm using Flexmark 0.50.36 with the YAML front matter extension. I need to support YAML like this in the front matter: ```yaml foo:bar: test ``` Flexmark incorrectly parses the key...
Example inputs: ``` {{somemacro param1="val\"ue"/}} ``` ``` {{somemacro param1="\value"/}} ``` ``` {{somemacro param1='val\'ue'/}} ``` It would be great if that could be added since a lot of XWiki macros need...
**Is your feature request related to a problem? Please describe.** CommonMark discussed Letter ordered lists here [Letter-ordered lists](https://talk.commonmark.org/t/letter-ordered-lists/173/24) pandoc documents it here: [ordered-lists](https://pandoc.org/MANUAL.html#ordered-lists) see "fancy_lists" paragraph **Describe the solution you'd...