public ContentResult Markup(string typeName) { var doc = GetDoc(typeName); foreach (var docType in doc.Types.ToList()) { var typeFullName = docType.Namespace + "." + GetNeededType(docType.Name); FillClientMembers(doc, typeFullName); } var codeplexDocRenderer = new CodePlexDocRenderer(); var extenderDoc = new ExtenderDoc(codeplexDocRenderer); var markup = extenderDoc.BuildDoc(doc.Types); var wikiEngine = new WikiPlex.WikiEngine(); var pageStyle = "<style>" + "html { font-family: 'Segoe UI'; font-size: 13px; }" + "table { border-collapse: collapse; font-size: 13px; } " + "table td, th { border: 1px solid #aaa; height: 28px; padding: 3px; text-align: left; } table th { font-family: 'Segoe UI Semibold' }" + "b, h1, h2 { font-family: 'Segoe UI Semibold' }" + "</style>"; return(Content(pageStyle + wikiEngine.Render(markup))); }
public static string RenderWikiPlexMarkup(string input) { // string input = "This is my wiki source!"; WikiPlex.WikiEngine engine = new WikiPlex.WikiEngine(); string HTML = engine.Render(input); return(HTML); } // End Function RenderWikiPlexMarkup
public IEnumerable<ListSessionVotingModel> GetListSessionVotingModel() { var wikiEngine = new WikiPlex.WikiEngine(); ListSessionVotingModel[] votingModels = sessionRepository.Entities.Project().ToArray<ListSessionVotingModel>(); foreach (var model in votingModels) { model.Abstract = wikiEngine.Render(model.Abstract); } return votingModels; }
public string extractHTML(MailMessage mm) { StringBuilder html = new StringBuilder(); WikiPlex.WikiEngine wEngine = new WikiPlex.WikiEngine(); html.Append("<div class='statusWrapper'>"); html.Append("<div class='who'>" + WebUtility.HtmlEncode(mm.From.ToString()) + "</div>"); html.Append("<div class='status'>" + wEngine.Render(mm.Body.ToString()) + "</div>"); html.Append("</div>"); return(html.ToString()); }