nk-gears / markdownsharp

Automatically exported from code.google.com/p/markdownsharp
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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