commonmark-java
commonmark-java copied to clipboard
Java library for parsing and rendering CommonMark (Markdown)
Steps to reproduce the problem (provide example input) ``` Parser parser = Parser.builder().build() HtmlRenderer renderer = HtmlRenderer.builder().build() Node document = parser.parseReader('Here I have a test [link](http://www.google.com)') String result = renderer.render(document)...
Similar to how custom block parser can be registered today, it would be good to make inline parsing extensible as well. One use would be to improve autolinking, see #112....
For #12, we need to preserve [link reference definitions](http://spec.commonmark.org/0.28/#link-reference-definitions). We also need to be able to distinguish between the different link types (inline links, autolinks, reference links). There is an...
Steps to reproduce the problem (provide example Markdown if applicable): ``` This is a GFM ~strikethrough~ ``` Expected behavior: ``` This is a GFM strikethrough ``` Actual behavior: ``` This...
I tried convert README.md from my project https://github.com/kamshory/OTP-Pi and I got unexpected result. my markdown ``` | Parameter | Value | |--|--| | Host | domain.example | | Port |...
Steps to reproduce the problem (provide example Markdown if applicable): ```md This endash: – should look like this endash: – ``` Expected behavior: ``` This endash: – should look like...
Adds a `MarkdownRenderer` that renders a `Node` tree to CommonMark Markdown. Supports all core nodes as well as "gfm-strikethrough", "gfm-tables" and "ins" extensions. This is very useful for applications that...
An application employing Markdown may want to resolve "naked links" (`[foo]`) -- i.e. links with no inline destination -- based on contextual knowledge rather than definitions in the text. A...
`autolink-java` supports detecting [WWW links](https://github.com/robinst/autolink-java#www-link-extraction), but the Autolink Extension for `commonmark-java` does not. This is easily fixed by removing [this line ](https://github.com/commonmark/commonmark-java/blob/dfd95d08a547d91bf10a6dea3d030906a5f976b7/commonmark-ext-autolink/src/main/java/org/commonmark/ext/autolink/internal/AutolinkPostProcessor.java#L15) so that the default detecting logic for `autolink-java`...
When using `DocumentParser` with no enabled block types, the `Text` nodes do not include whitespaces at the beginning of a line. For example, when we use a parser with no...