Skip to content

Strange bug(?) with this.lexer.blockTokens #3658

Answered by UziTech
jmckalex asked this question in Q&A
Discussion options

You must be logged in to vote

The way marked-alert works is it uses walkTokens to change blockquotes to alert tokens when it finds an alert. Your marked demo directives add any child tokens to the property output which walkTokens doesn't know is a list of child tokens. if you change it to the property tokens or add childTokens: ["output"] (see docs) to the extension than walkTokens would know that the inner blockquote needs to change to an alert.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@UziTech
Comment options

Comment options

You must be logged in to vote
2 replies
@UziTech
Comment options

Answer selected by jmckalex
@jmckalex
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants