JetBrains / markdown

Markdown parser written in kotlin
Apache License 2.0
706 stars 78 forks source link

Question: Help me find Markdown DSL that is implemented in Kotlin #58

Open sboishtyan opened 4 years ago

sboishtyan commented 4 years ago

I need a library that will generate Markdown. I found https://github.com/mahdi13/markdownk but it looks poor. I realize that issue is not related to this project, but maybe you know libraries to do that? What do you use in JB for generating Markdown files?

valich commented 4 years ago

JB's a big company and there are different projects using markdown :) Several use this generator, including IntelliJ. If you need purely Kotlin one, I don't know other ones (though I haven't searched really). If JVM-only solution is fine for you, you might want to look at https://github.com/atlassian/commonmark-java. It has very similar architecture, and, frankly, is more polished than this library at the moment for common use cases.

sboishtyan commented 4 years ago

Thank you for your advice. In the first message, I tried to say that I need not only parsing but generating. As I see atlassian commonmark like your library only parses. Maybe you know libraries that provide DSL for writing type-safe Markdown in the code?

mfwgenerics commented 1 year ago

@sboishtyan It might not be exactly what you are looking for but I am working on a Markdown DSL here: https://github.com/mfwgenerics/markout