markdig
markdig copied to clipboard
Markdig.Extensions.SharpCs
I've created an extension for Markdig here: https://github.com/macaba/Markdig.Extensions.ScriptCs
It essentially allows any arbitrary C# code to output markdown or HTML to the document. The C# can either be in the markdown or the bulk of it can be put into csx
files that are referenced from the markdown for better separation of code from content. Readme.md shows a few good examples.
I don't think it's suitable for a pull request into this repo as it has large nuget dependencies so it wouldn't make sense (to me) to pollute core Markdig with these.
However I do want to invite comments and suggestions so I thought I'd open this issue.
Glad that you were able to make your way to get an extension working without much documentation there. I can see interesting usages of your extension, but yeah, it is likely outside of the scope of the core parts. Anyway, thanks for the feedback!