8000 fix: actually add a `type` property to the `def` token (#2002) · markedjs/marked@47e65cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 47e65cf

Browse files
author
sapristi
authored
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 #2001) , this should be the right one ! Sorry for that.
1 parent 856c4ad commit 47e65cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Tokenizer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ module.exports = class Tokenizer {
347347
if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1);
348348
const tag = cap[1].toLowerCase().replace(/\s+/g, ' ');
349349
return {
350+
type: 'def',
350351
tag,
351352
raw: cap[0],
352353
href: cap[2],

0 commit comments

Comments
 (0)
0