Replies: 2 comments
-
If i would have to guess, from the code(which i cannot say i understand, since typescript is not my forte), it seems like |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, so one has to go through marked instance by calling: const md = new Marked({
async: true,
breaks: true,
gfm: true,
extensions: [superscript, subscript, marker],
});
const tokens = md.lexer(value); instead of just using lexer by itself. This seems like a bug, in a way though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems like extensions are not registered by the lexer. Am I doing something wrong?
This works:
This does not:
by not working, I mean that the extensions are not triggered and do not produce tokens.
Beta Was this translation helpful? Give feedback.
All reactions