import{TextFile}from"file/classes";importtype{PageSettings}from"../../types/site";// TODOconstfileHasTitle=(fileString: string)=>{returnfileString.indexOf("# ")===0;};// after the article is in some html ast form, get more info from it// @ts-ignoreconstrenderArticle=(mdArticle: any,config: PageSettings&{title: string;siteName: string})=>{constpageName=mdArticle.name;return["html",["header",config],["body",["Sidebar"],["div",{class: "site-body"},["main",["article",{class: "wikipage"},fileHasTitle??["h1",{class: "title-top", pageName }],mdArticle,],],["div",{class: "article-rhs-container"},["div",{class: "article-rhs"},["PageMap"],["GitHistoryTable"],["PrevNextUpButtons"],],],],],];};// a CSS file is a text fileclassMarkdownFileextendsTextFile{staticfiletypes=["md"];}exportdefaultMarkdownFile;