From 47e65cfb63e8ea8acceb676f59d8d37d346ebcaf Mon Sep 17 00:00:00 2001 From: sapristi Date: Sun, 11 Apr 2021 21:07:52 +0200 Subject: [PATCH] fix: actually add a `type` property to the `def` token (#2002) Hmm I think I modified the wrong file (`lib/marked.js`) in the previous PR (see https://github.com/markedjs/marked/pull/2001) , this should be the right one ! Sorry for that. --- src/Tokenizer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Tokenizer.js b/src/Tokenizer.js index 79f8611be2..33aef2b2b1 100644 --- a/src/Tokenizer.js +++ b/src/Tokenizer.js @@ -347,6 +347,7 @@ module.exports = class Tokenizer { if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1); const tag = cap[1].toLowerCase().replace(/\s+/g, ' '); return { + type: 'def', tag, raw: cap[0], href: cap[2],