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

Changing the images/links before they're rendered as HTML

GoogleCodeExporter opened this issue · comments

I'm using markdownsharp for Markdown support in an OS .NET wiki engine. The 
wiki engine also supports Creole and Media Wiki format and the parsers I use 
for those (from creoleparser.codeplex.com) support link manipulation before the 
images/links are written to HTML. This is critical for the local links in the 
wiki engine as they have to be rewritten for the HTML.

I've attached apatch and the Markdown.cs file (as HG's patch file isn't that 
great compared to diffmerge) with the changes. It's really just two new events 
and two complimentary EventArg classes. It passes the test suite.

Add it or don't add it, I don't mind either way :] But I thought it might be a 
useful addition. The patch version is in the Wiki source at 
http://hg.shrinkrays.net/roadkill

Regards
Chris

Original issue reported on code.google.com by mrshrink...@gmail.com on 7 Mar 2011 at 4:53

Attachments:

This isn't a defect but a patch, but I can't edit it

Original comment by mrshrink...@gmail.com on 20 Mar 2011 at 10:56