Skip to content

Nested Lists: Custom Renderer throws Token with "list" type was not found. #3557

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

You must be logged in to vote

List is a block level token that can contain other block level tokens but you use parseInline to render it's children. Change it toparse and it should work.

  list(this, { items, ordered }) {
    const texts = items.map((input) => this.parser.parse(input.tokens))

Replies: 1 comment 1 reply

Comment options

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

Answer selected by maltesa
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