hey-red / Markdown

Open source C# implementation of Markdown processor, as featured on Stack Overflow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReverseTransform

GoogleCodeExporter opened this issue · comments

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

[deleted comment]
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

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

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

  • Added labels: Priority-Low
  • Removed labels: Priority-Medium
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

  • Changed state: WontFix
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