JetBrains / markdown

Markdown parser written in kotlin
Apache License 2.0
682 stars 75 forks source link

Can we convert HTML String to Markdown String #102

Closed dharamveer-roundr closed 12 months ago

dharamveer-roundr commented 2 years ago

I am looking for a solution where an HTML String can be parsed into MarkDown. Can we achieve it with this Library?

altavir commented 2 years ago

This library obviously parses markdown and generates HTML, not vice versa. You can try using https://pandoc.org/ for generic transofrmations.

Also please note, that in general, markdown covers only very small subset of HTML. Meaning that HTML in general could not be converted to plain markdown.

dharamveer-roundr commented 2 years ago

This library obviously parses markdown and generates HTML, not vice versa. You can try using https://pandoc.org/ for generic transofrmations.

Also please note, that in general, markdown covers only very small subset of HTML. Meaning that HTML in general could not be converted to plain markdown.

Thanks for solving my query 👍