From f1b6f3082ea31279fe4086c7dfec6cf3255fae32 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Fri, 19 Oct 2018 00:44:59 +0100 Subject: [PATCH] Remove unmatchable rules from render_shortcodes --- components/rendering/src/shortcode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rendering/src/shortcode.rs b/components/rendering/src/shortcode.rs index 45cd6b8..01f0cfb 100644 --- a/components/rendering/src/shortcode.rs +++ b/components/rendering/src/shortcode.rs @@ -149,7 +149,7 @@ pub fn render_shortcodes(content: &str, context: &RenderContext) -> Result res.push_str(p.into_span().as_str()), + Rule::text => res.push_str(p.into_span().as_str()), Rule::inline_shortcode => { let (name, args) = parse_shortcode_call(p); res.push_str(&render_shortcode(&name, &args, context, None)?);