summaryrefslogtreecommitdiff
path: root/subplot/riki.rs
diff options
context:
space:
mode:
Diffstat (limited to 'subplot/riki.rs')
-rw-r--r--subplot/riki.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/subplot/riki.rs b/subplot/riki.rs
index 722b597..9575b55 100644
--- a/subplot/riki.rs
+++ b/subplot/riki.rs
@@ -81,6 +81,8 @@ impl MutVisitor for DropImageFigTitle {
if let Inline::Image(attr, alt, target) = inline {
if target.1 == "fig:" {
*inline = Inline::Image(attr.clone(), alt.to_vec(), (target.0.clone(), "".into()));
+ } else if let Some(rest) = target.1.strip_prefix("fig:") {
+ *inline = Inline::Image(attr.clone(), alt.to_vec(), (target.0.clone(), rest.into()));
}
}
}