XmlNode CreateWikiBodyFromPlainText(XmlDocument doc, WikiRecord content) { return doc.CreateTextNodeSafe (content.Body); }
XmlNode CreateWikiBodyFromPukiWikiMarkup(XmlDocument doc, WikiRecord content) { WikiRootElement root = PukiWikiMarkupParser.Instance.Parse (content.Body); return doc.CreateTextNodeSafe (WikiHtmlRenderer.Instance.Render (root, PukiWikiMarkupParser.Instance)); }
XmlNode CreateWikiBody(XmlDocument doc, WikiRecord content) { switch (content.MarkupType) { case WikiMarkupType.PukiWiki: return CreateWikiBodyFromPukiWikiMarkup (doc, content); default: return CreateWikiBodyFromPlainText (doc, content); } }