Skip to content

Commit

Permalink
fix: actually add a type property to the def token (#2002)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sapristi committed Apr 11, 2021
1 parent 856c4ad commit 47e65cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tokenizer.js
Expand Up @@ -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],
Expand Down

1 comment on commit 47e65cf

@vercel
Copy link

@vercel vercel bot commented on 47e65cf Apr 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.