コード例 #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;
        }
コード例 #2
0
 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());
     }
 }
コード例 #3
0
ファイル: WikiRenderer.cs プロジェクト: jeswin/AgileFx
 public static string Render(string source)
 {
     var wikiEngine = new WikiEngine();
     return wikiEngine.Render(source, new MacroFormatter(Renderers.All));
 }
コード例 #4
0
 public static IHtmlString Wiki(this HtmlHelper<string> htmlHelper, string wikiContent)
 {
     var wiki = new WikiEngine();
     return new HtmlString(wiki.Render(wikiContent));
 }