feat: improved the module heading generation

This commit is contained in:
Byson94
2025-09-27 19:49:00 +05:30
parent 39c284682a
commit 21216b642c

View File

@@ -40,7 +40,12 @@ fn generate_docs(
if !in_frontmatter {
if let Some(title) = &frontmatter_title {
filtered_lines.push(format!("# {}", title));
// The following will be generated:
//
// :::note Module
// # title
// :::
filtered_lines.push(format!(":::note Module\n# {}\n:::", title));
}
frontmatter_title = None;
}