However, this caused a TypeError: Cannot set properties of undefined (setting 'footnote_block_open') at (https://deno.land/x/lume@v1.11.1/plugins/markdown.ts:91:25) when building the site.
Looking at markdown-it documentation, it seems that in markdown.ts:91 instead of engine.rules[name] = rule;, should it be engine.renderer.rules[name] = rule;? After doing this change, my site built successfully and used the customized footnote_block_open. However, I'm not too familiar with lume or markdown-it to say if this is a correct fix?
I was trying to overwrite
markdown-it-footnote
template rules in_config.ts
:However, this caused a
TypeError: Cannot set properties of undefined (setting 'footnote_block_open') at (https://deno.land/x/lume@v1.11.1/plugins/markdown.ts:91:25)
when building the site.Looking at markdown-it documentation, it seems that in markdown.ts:91 instead of
engine.rules[name] = rule;
, should it beengine.renderer.rules[name] = rule;
? After doing this change, my site built successfully and used the customizedfootnote_block_open
. However, I'm not too familiar with lume or markdown-it to say if this is a correct fix?