markdig icon indicating copy to clipboard operation
markdig copied to clipboard

Two-way conversion/Html.ToMarkdown support

Open KirkMunro opened this issue 8 years ago • 3 comments

Have you thought about adding to this library so that it supports HTML to Markdown as well? There are a number of other libraries out there that are really basic (and flawed), that's left me wondering how difficult it would be to extend this to support conversion the other way.

KirkMunro avatar Feb 02 '17 22:02 KirkMunro

Imho, it is not really "extend"... but more a separate project, using something like AngleSharp. Ideally, even the HtmlRenderer in markdig could have been a package developed outside core markdig... though for 90% of usage, people are looking for translating Markdown to HTML, so I don't like to introduce separate packages for the sake of software design when common usage shows differently...

So I don't have any objection to this idea, but as part of a separated project (note that it could be integrated into this repo). PR welcome, as I really don't have any spare time left for this (or even currently personal interests 😅 )

xoofx avatar Feb 03 '17 08:02 xoofx

I found this tool suitable for the task: https://github.com/mysticmind/reversemarkdown-net

HardcoreMagazine avatar Sep 19 '23 07:09 HardcoreMagazine