Clean up indentation

This commit is contained in:
Jacob 2024-01-03 10:06:10 +01:00
parent d4986146db
commit acd4f3b432

View file

@ -121,7 +121,7 @@ function convertMarkdownToHTML($contents) {
$ret = new parsedMarkdown(); $ret = new parsedMarkdown();
$parser = new MarkdownExtra; $parser = new MarkdownExtra;
$parser->no_markup = false; $parser->no_markup = true;
$specialSyntax = array( $specialSyntax = array(
'/.*@csgen\.title.*=.*"(.*)(");/', '/.*@csgen\.title.*=.*"(.*)(");/',
@ -199,6 +199,7 @@ function convertMarkdownToHTML($contents) {
if (preg_match('/([0-9]*)x([0-9]*)/', $matches[1], $imgres)) { if (preg_match('/([0-9]*)x([0-9]*)/', $matches[1], $imgres)) {
$out = str_replace($matches[0], "<img width=\"$imgres[1]\" height=\"$imgres[2]\" src=\"$matches[2]\">", $out); $out = str_replace($matches[0], "<img width=\"$imgres[1]\" height=\"$imgres[2]\" src=\"$matches[2]\">", $out);
} }
break; break;
} }
} }