From e85a62a05c70181a3ef8f95bc744f88b5bbf1308 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 13 Feb 2024 09:35:55 -0500 Subject: [PATCH] Disable default `def` behavior. --- shared/naturalcrit/markdown.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index 6191b232e..3f07f0cc2 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -83,6 +83,11 @@ renderer.link = function (href, title, text) { return out; }; +// Disable default reflink behavior, as it steps on our variables extension +tokenizer.def = function () { + return undefined; +}; + const mustacheSpans = { name : 'mustacheSpans', level : 'inline', // Is this a block-level or inline-level tokenizer?