Adjust doc to support blockquote alerts.

This commit is contained in:
KtorZ
2024-08-28 15:28:49 +02:00
parent 6bbc6a8f2f
commit 745f14ccb2
5 changed files with 155 additions and 12 deletions

View File

@@ -634,6 +634,11 @@ impl DocTypeConstructor {
.doc
.as_deref()
.map(|doc| render_markdown(&format!("{doc}\n{doc_args}")))
.or(if doc_args.is_empty() {
None
} else {
Some(render_markdown(&format!("\n{doc_args}")))
})
.unwrap_or_default(),
raw_documentation: constructor.doc.as_deref().unwrap_or_default().to_string(),
}