protected string RenderPageContent() { Page page; if (_pageName == null) { _pageName = string.Empty; } if (Version > 0) { page = Wiki.GetPage(_pageName, Version); } else { page = Wiki.GetPage(_pageName); } if (page == null) { return(RenderEmptyPage()); } RiseWikiPageLoaded(page); RisePublishVersionInfo(page); return(HtmlWikiUtil.WikiToHtml(page.PageName, page.Body, Page.ResolveUrl(Request.AppRelativeCurrentExecutionFilePath), Wiki.GetPagesAndFiles(page.Body), Page.ResolveUrl(ImageHandlerUrlFormat), TenantId, CanEditPage && Version == 0 ? ConvertType.Editable : ConvertType.NotEditable)); }
private string RenderPageContent(string pageName, string wiki) { return(HtmlWikiUtil.WikiToHtml(pageName, wiki, Page.ResolveUrl(Request.AppRelativeCurrentExecutionFilePath), Wiki.GetPagesAndFiles(wiki), Page.ResolveUrl(ImageHandlerUrlFormat), TenantId, ConvertType.Wysiwyg)); }