diff --git a/src/markdown.rs b/src/markdown.rs
index a4a2628..9c32c41 100644
--- a/src/markdown.rs
+++ b/src/markdown.rs
@@ -741,7 +741,7 @@ pub fn parse_page(input: &str) -> String {
let mut in_pre = false;
for line in input.split("\n") {
- if line.starts_with("```") {
+ if line.starts_with("```") || line.starts_with("") {
in_pre = !in_pre;
if in_page {
@@ -830,7 +830,7 @@ pub fn parse_details(input: &str) -> String {
let mut in_pre = false;
for line in input.split("\n") {
- if line.starts_with("```") {
+ if line.starts_with("```") || line.starts_with("") {
in_pre = !in_pre;
if in_details {
@@ -899,7 +899,7 @@ pub fn get_toc_list(input: &str) -> (String, String) {
let mut in_pre = false;
for line in input.split("\n") {
- if line.starts_with("```") {
+ if line.starts_with("```") || line.starts_with("") {
in_pre = !in_pre;
output.push_str(&format!("{line}\n"));
continue;
@@ -959,7 +959,7 @@ pub fn parse_toc(input: &str) -> String {
let mut in_pre = false;
for line in new_input.split("\n") {
- if line.starts_with("```") {
+ if line.starts_with("```") || line.starts_with("") {
in_pre = !in_pre;
output.push_str(&format!("{line}\n"));
continue;