Ejemplo n.º 1
0
        /// <summary>
        /// Render Wiki To Html
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        public static string WikiRenderToHtml(this string text)
        {
            var engine = new WikiPlex.WikiEngine();
            string output = engine.Render(text);

            return output;
        }
 public static string Reader(string path, Assembly assembly)
 {
     Stream stream = assembly.GetManifestResourceStream(path);
     if (stream == null)
     {
         throw new Exception();
     }
     var engine = new WikiEngine();
     using (var text = new StreamReader(stream))
     {
         return engine.Render(text.ReadToEnd());
     }
 }
Ejemplo n.º 3
0
 public static string Render(string source)
 {
     var wikiEngine = new WikiEngine();
     return wikiEngine.Render(source, new MacroFormatter(Renderers.All));
 }
Ejemplo n.º 4
0
 public static IHtmlString Wiki(this HtmlHelper<string> htmlHelper, string wikiContent)
 {
     var wiki = new WikiEngine();
     return new HtmlString(wiki.Render(wikiContent));
 }