jasongaylord / markdownsharp

Project that ports code.google.com/p/markdownsharp to .NET Core 1.1
MIT License
9 stars 1 forks source link

ReverseTransform #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd love a function that does an HTML -> Markdown conversion.

I'm working on a patch, but it's slow going, as my knowledge of RegEx is
pretty basic.

Original issue reported on code.google.com by archona...@gmail.com on 4 Jan 2010 at 5:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am not sure this is 100% possible. It sounds quite difficult -- have you 
researched
other libraries that do this?

Original comment by wump...@gmail.com on 5 Jan 2010 at 12:08

GoogleCodeExporter commented 9 years ago
html2text at http://www.aaronsw.com/2002/html2text/ seems to solve the problem, 
and
has recent updates, according to the history on the site. I think it would be
worthwhile to attempt a port to C# for inclusion with Markdownsharp, but I'm 
unsure
how the licensing is different between html2text (GPL?) and Markdownsharp 
(MIT?).

Original comment by archona...@gmail.com on 5 Jan 2010 at 3:13

GoogleCodeExporter commented 9 years ago

Original comment by wump...@gmail.com on 6 Jan 2010 at 7:25

GoogleCodeExporter commented 9 years ago
I do appreciate the comment -- and if you end up with a patch I will be happy 
to look
at it -- but conversion from HTML to Markdown is outside the scope of this 
project IMHO.

I think you might have better luck porting html2text to c#

Original comment by wump...@gmail.com on 6 Jan 2010 at 10:58

GoogleCodeExporter commented 9 years ago
Yeah, I wondered if this would fall within scope or not. Thanks for the 
responses.

Original comment by archona...@gmail.com on 6 Jan 2010 at 2:24