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.
Is it possible to define what markdown is allowed? I would like to restrict markdown to basic formatting. brgds Papick
I use flexmark to help generate AST for commonmark-markdown and convert the format to various other custom markdowns (or custom formats). Need guidelines around how flexmark can be tuned to...
**Describe the bug** We would like to implement a few specific colors in our own markdown based language like: [green] foo [/green] We would also like it to work in...
Hi, My app crashes on this part of the code: ``` fun textWithMarkdown(text:String): Spanned { val options = MutableDataSet() //This is the line which crashes: val parser: Parser = Parser.builder(options).build()...
How do I "turn on" the AtttributeExtension? * [ ] `Parser` * [] `HtmlRenderer` * [ ] `Formatter` * [ ] `FlexmarkHtmlParser` * [ ] `DocxRenderer` * [ ] `PdfConverterExtension`...
**Describe the bug** A clear and concise description of what the bug is. Feel free to remove any sections that do not apply or add your own to clarify your...
Right now, the PdfConverterExtension depends on openhtmltopdf. Which is an unacceptable solution, because openhtmltopdf is LGPL-licensed, thus clearly contradicting the license of Flexmark itself. Please, implement an alternative solution for...
Suggestion: Migrate the code from JUnit 4 to JUnit 5. See: - https://junit.org/junit5/ - https://junit.org/junit5/docs/current/user-guide/#migrating-from-junit4 - https://www.baeldung.com/junit-5-migration - https://blog.jetbrains.com/idea/2020/08/migrating-from-junit-4-to-junit-5/ - https://www.arhohuttunen.com/junit-5-migration/
Test case: ```java package com.vladsch.flexmark.jira.converter; import static com.vladsch.flexmark.parser.Parser.EXTENSIONS; import static java.util.Collections.singletonList; import static org.junit.jupiter.api.Assertions.assertEquals; import com.vladsch.flexmark.html.HtmlRenderer; import com.vladsch.flexmark.parser.Parser; import com.vladsch.flexmark.util.ast.Document; import com.vladsch.flexmark.util.data.MutableDataSet; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; final class...
**Describe the bug** Currently `Document.toString()` does not appear to be implemented (properly). Simple test case: ``` package com.vladsch.flexmark.util.ast; import static org.junit.jupiter.api.Assertions.assertNotEquals; import com.vladsch.flexmark.parser.Parser; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; final class DocumentTest...