vsch / flexmark-java

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.
BSD 2-Clause "Simplified" License
2.26k stars 269 forks source link

Proof of concept: Some niceties for Kotlin programmers. #595

Open StochasticTinkr opened 1 year ago

StochasticTinkr commented 1 year ago

I was curious if you'd be open to having this kind of kotlin-friendly API in flexmark. My ultimate goal is to make it easy to having something like this in kotlin:

  val myOptions:DataHolder = options {
    addExtensions( 
      TablesExtension.create(),
      FootnoteExtension.create(),
     )
     headingNoAtxSpace = false
     rendererMaxTrailingBlankLines = 3
     parser {
       parserEmulationProfile = GITHUB_DOC
     }    
   }