Skip to content

Commit 8de1517

Browse files
committed
fix(templ): render glossary marco better in GlossaryDisambiguation
1 parent 986b933 commit 8de1517

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/rari-doc/src/templ/render.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ pub(crate) fn render_for_summary(input: &str) -> Result<String, DocError> {
3838
| "quicklinkswithsubpages" => None,
3939
"glossary" => mac
4040
.args
41-
.first()
41+
.get(1)
42+
.or(mac.args.first())
4243
.and_then(|f| f.clone())
4344
.map(|arg| AnyArg::try_from(arg).unwrap().to_string()),
4445
_ => mac

0 commit comments

Comments
 (0)