Java library for parsing and rendering CommonMark (Markdown)
Repo commonmark/commonmark-java, read from GitHub 17 h ago. commonmark has not joined Take My Repo.
org.commonmark:commonmark-ext-github with a GitHubExtensionsScanner API for extensions now has findPrev methods to search backwards,MarkdownRenderer: Preserve literal ampersands in links and images (#468)LinkProcessor, Scanner needs to be passed to LinkInfo#text nowlineSeparator for MarkdownRenderer.Builder to change the default line\n (e.g. to \r\n) (#442)maxCells in TablesExtension.Builder. Parsing will throw an error if themaxOpenBlockParsers for Parser.Builder is now 100; configure themaxInlineNesting inParser.Builder; configure the option to remove the limit. This covers emphasis-like* or the ins extension's +) as well as images, which can otherwise"x <!--".repeat(100_000) (#447)"<".repeat(100_000)"a**b" + "c* ".repeat(100_000)maxInlineNesting above). This can happen with emphasis, e.g."*".repeat(n) + "x" + "*".repeat(n) or "*a ".repeat(n) + " b*".repeat(n), as well as with"".repeat(n)|)<p> tag via AttributeProvider (#427)AlertsExtension to allow authors to provide customAlertsExtension to allow alerts to be nested withinAlertsExtension to allow the set of alert typesvar extension = AlertsExtension.builder() .setAllowedTypes(Map.ofEntries( Map.entry("IMPORTANT", "Important"), Map.entry("WARNING", "Warning") Map.entry("BUG", "Known Bug") )) .build();