From 8103e7743fe41f0e86b70e69679199098f819fb3 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 18 Apr 2024 02:48:48 -0600 Subject: [PATCH] prevent skipped include processor from being processed as a block macro --- lib/skip-include-processor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/skip-include-processor.js b/lib/skip-include-processor.js index d224898..bf195a2 100644 --- a/lib/skip-include-processor.js +++ b/lib/skip-include-processor.js @@ -14,7 +14,8 @@ function createExtensionGroup (registry) { return true }) this.process((doc, reader, target, attrs) => { - reader.pushInclude(directive, target, target, 1, attrs) + // append {empty} to prevent it from being recognized as macro when not in verbatim or raw block + reader.pushInclude(directive + '{empty}', target, target, 1, attrs) return true }) })