From 324211159e2a4ccfcd3b60be8740276b80636dd9 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Tue, 9 Oct 2018 18:56:18 +0100 Subject: [PATCH] Fix content parser's 'text' rule to use the correct production --- components/rendering/src/content.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rendering/src/content.pest b/components/rendering/src/content.pest index 60454ee..253a996 100644 --- a/components/rendering/src/content.pest +++ b/components/rendering/src/content.pest @@ -57,7 +57,7 @@ ignored_shortcode_with_body = { ignored_sc_body_start ~ text_in_ignored_body_sc text_in_body_sc = ${ (!(sc_body_end) ~ ANY)+ } text_in_ignored_body_sc = ${ (!(ignored_sc_body_end) ~ ANY)+ } -text = ${ (!(inline_shortcode | ignored_inline_shortcode | sc_body_start | ignored_sc_body_start) ~ ANY)+ } +text = ${ (!(inline_shortcode | ignored_inline_shortcode | shortcode_with_body | ignored_shortcode_with_body) ~ ANY)+ } content = _{ ignored_inline_shortcode |