Пример #1
0
 XmlNode CreateWikiBodyFromPlainText(XmlDocument doc, WikiRecord content)
 {
     return doc.CreateTextNodeSafe (content.Body);
 }
Пример #2
0
 XmlNode CreateWikiBodyFromPukiWikiMarkup(XmlDocument doc, WikiRecord content)
 {
     WikiRootElement root = PukiWikiMarkupParser.Instance.Parse (content.Body);
     return doc.CreateTextNodeSafe (WikiHtmlRenderer.Instance.Render (root, PukiWikiMarkupParser.Instance));
 }
Пример #3
0
 XmlNode CreateWikiBody(XmlDocument doc, WikiRecord content)
 {
     switch (content.MarkupType) {
         case WikiMarkupType.PukiWiki:
             return CreateWikiBodyFromPukiWikiMarkup (doc, content);
         default:
             return CreateWikiBodyFromPlainText (doc, content);
     }
 }