Skip to content

Commit

Permalink
prevent skipped include processor from being processed as a block macro
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Apr 18, 2024
1 parent ffe8f6a commit 8103e77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/skip-include-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
})
Expand Down

0 comments on commit 8103e77

Please sign in to comment.