This commit is contained in:
2025-04-05 13:38:06 -06:00
parent 0a6497f6f3
commit ab00581dc6
+2 -2
View File
@@ -96,14 +96,14 @@ function article_page_from_markdown($article_id)
$lines = preg_split("/\r\n|\n|\r/", $article_content);
foreach ($lines as $line)
if (str_contains($line, '<h4>'))
$article_toc .= '<p>' . extract_content_from_tag($line, '<h4>', '</h4>') . '</p>';
$article_toc .= '<p>' . extract_content_from_tag($line, '<h4>', '</h4>') . '</p><br>';
$html = '
<div class="article">
<h3>' . $article['title'] . '</h3>
<div class="row">
<div class="col_right">
<h5>Written by <a href="user.php?action=view&user_id=' . $author['user_id'] . '" style="font-size: 1.5vw;">' . $author['username'] . '</a></h5>
<h5>Written by <a href="user.php?action=view&user_id=' . $author['user_id'] . '">' . $author['username'] . '</a></h5>
<p>Published on ' . $article['published_at'] . '</p>
</div>
<div class="card_pic_box">