MarkZither / ScrewTurnWiki

ScrewTurnWIki v3 Updated to .net Framework 4.7
2 stars 1 forks source link

Add a option to use markdown instead of the mediawiki like markup #18

Open MarkZither opened 5 years ago

MarkZither commented 5 years ago

use the stackedit editor and markdig renderer

MarkZither commented 5 years ago

To avoid maintaining 2 editors use Html2Markdown to convert the HTML to markdown after raw = Formatter.Format(raw, forIndexing, context, current, out linkedPages); in FormattingPipeline and then only use the StackEdit editor. Would need to detect if the content is mediawiki or markdown before calling Formatter.Format possibly by checking for frontmatter or simply saving the markdown files with md extension rather than the cs which is currently used.