:target:before { content:\"\"; display:block; height:90px; /* fixed header height*/ margin:-90px 0 0; /* negative fixed header height */ } "; class MDParser implements Mni\FrontYAML\Markdown\MarkdownParser { public function __construct() { $this->mdparser = new Michelf\MarkdownExtra(); $this->mdparser->header_id_func = function ($header) { return preg_replace('/[^a-z0-9]/', '-', strtolower($header)); }; } public function parse($markdown) { return $this->mdparser->transform($markdown); } } $parser = new Mni\FrontYAML\Parser(null, new MDParser()); if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) { $title = "tilde.chat~wiki"; $additional_head .= " "; include __DIR__.'/../header.php'; // render wiki index ?>
welcome to the tilde.chat wiki!
if you want to contribute, check out the source and open a PR!