commonmark-java
commonmark-java copied to clipboard
Java library for parsing and rendering CommonMark (Markdown)
**Is your feature request related to a problem? Please describe.** Github now support admonition blocks ```markdown > [!NOTE] > Highlights information that users should take into account, even when skimming....
[Jitpack](https://jitpack.io) is a useful maven repository to develop against unreleased code hosted on github. The default maven version on jitpack (3.6.1) [fails to build](https://jitpack.io/com/github/commonmark/commonmark-java/7d12b6fa1aa29397cf74299a5c7cced47496ee63/build.log) commonmark-java main with ``` [ERROR] Failed...
Steps to reproduce the problem (provide example Markdown if applicable): Try to load and render an example from: https://squidfunk.github.io/mkdocs-material/reference/content-tabs/ The CoreMarkdownNodeRenderer.visit(Text text) method will escape it and prevent the content...
Convert markdown to plaintext using: ```kt private fun convertMarkdownToPlaintext(markdown: String): String { val parser = Parser.builder().build() val document = parser.parse(markdown) val renderer = TextContentRenderer.builder().build() return renderer.render(document) } ``` Example: ```markdown...
Closes #331
This adds a new extension `commonmark-ext-footnotes` (class `org.commonmark.ext.footnotes.FootnotesExtension`) to implement footnotes syntax as in GitHub Flavored Markdown (see [docs](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#footnotes)). Fixes #273. An example: ``` Some text with a footnote[^1]. [^1]:...
Corresponding to [the specification](https://spec.commonmark.org/0.30/#thematic-breaks), thematic breaks can consist of 3 or more consecutive on of characters `-`, `_` or `*` with 0-3 leading spaces (i.e. regex `^\s{0,3}[-_*]{3,}$`). This logic seem...
Thank you for building commonmark-java! I have been its user from early days and the library is a foundational piece of Znai. It uses it extensively for common extensions and...
The existing line/column indexes in `SourceSpan` are useful for some cases, e.g. editors that are line based. But for other cases, it's useful to be able to get the index...
I'm using [Google OSS License plugin](https://github.com/google/play-services-plugins/tree/main/oss-licenses-plugin#readme) to show libraries' licenses to end users. And after add `commonmark-java` dependency, I found license activity don't show license of `commommark-java` I found there...