1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 21:00:23 +01:00

22 lines
650 B
PHP
Raw Normal View History

2020-02-16 19:57:11 +01:00
<!DOCTYPE html>
<html>
<head>
<title>
CanvasBlocker FAQs
</title>
2020-11-09 08:27:45 +01:00
<link rel="stylesheet" href="../default.css" type="text/css">
2020-02-16 19:57:11 +01:00
</head>
<body>
<header><h1>CanvasBlocker FAQs</h1></header>
<?php
include_once("../../kamiKatze/autoload.php");
$parser = new MarkdownParser();
foreach (new DirectoryIterator("./") as $file){
if (!$file->isDot() && !$file->isDir() && $file->getExtension() === "md"){
$markdown = $parser->parse(file_get_contents($file->getPathname()));
2022-01-30 11:00:00 +01:00
echo preg_replace("/<h2/", "<h2 id=\"" . str_replace(".md", "", $file->getFilename()) . "\"", $markdown->view("html"), 1);
2020-02-16 19:57:11 +01:00
}
}
?>
</body>
</html>