Replies: 2 comments
-
It seems one cannot overwrite the core renderers. I have turned them into extensions and that helped, although tablecell and tablerow can be overloaded only as renderer option, not as extension's renderer. |
Beta Was this translation helpful? Give feedback.
-
Nevermind, I figured i was approaching this from the wrong angle. Basically I just wanted to render json tokens instead of raw html, in order to be able to then render them by Vue template and be native part of a Vue component. But after some thinking, all i need is the lexer and render tokens directly, bypassing the parser and double-rendering. |
Beta Was this translation helpful? Give feedback.
-
I am overriding all the renderers as defined in here https://github.com/markedjs/marked/blob/master/src/Renderer.ts
Like
but when i need to process some nested elements, the call to
this.parser.parse()
orthis.parser.parseInline()
fails becausethis.parser
does not exist. How am I supposed to access it? I know it is available in renderer for an extension, but that is not what I am doing.Beta Was this translation helpful? Give feedback.
All reactions