Working on a 'school' project what is kind of a stackoverflow 'remake'.
The 'remake' is finished except one part.
Trying to figure out how to implement markdown(deep) so there can be questions and answers posted witch rich content instead of only text.
Now after spending literally a half day I found and managed to get an example running.
The only problem I have, it's not working on my project.
This is the source I use
So I am using the exact same way how it's done in given source in my own controller for the view: 'NewQuestion'
Static (example) content to show:
static string m_Content =
@"# Edit this Page with MarkdownDeep
This demo project shows how to use MarkdownDeep in a typical ASP.NET MVC application.
* Click the *Edit this Page* link below to make changes to this page with MarkdownDeep's editor
* Use the links in the top right for more info.
* Look at the file `MarkdownDeepController.cs` for implementation details.
MarkdownDeep is written by [Topten Software](http://www.toptensoftware.com).
The project home for MarkdownDeep is [here]
public ActionResult Index()
// View the user editable content
// Create and setup Markdown translator
var md = new MarkdownDeep.Markdown();
md.SafeMode = true;
md.ExtraMode = true;
// Transform the content and pass to the view
ViewData["Content"] = md.Transform(m_Content);