Replies: 1 comment
-
Actually, nevermind, that would not work either or be very problematic. |
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
-
I am having small issues with rendering non-continuous blocks of html in Vue application(it requires html element wrapper for each raw html content, which causes issues) because some parts of the content are being parsed and rendered into Vue components interlaced with html produced by markdown renderer(like adding a custom md tag and then extracting the content to be rendered as Vue component, splitting the rendered html into two parts to be then rendered before and after this component).
And so I was thinking that the best course of action would be to simply override all mardked renderers and output json to be then handled in Vue component and manually render all the html tags and my components in Vue template so it is all one piece.
The problem i see here is that there is html() rendeing handler but it has not tokenization. It takes raw html as a string and simply returns it. But this does not work for me, obviously. I need to be able to tokenize every single html tag so I can render it manually.
So I need some tokenizer to run on the provided string and produce list of tokens to be handled afterwards.
Is there some support for this as a module or can you recommend some independent library that can do this? Essentially it's like parsing DOM but there is just one html element.
Beta Was this translation helpful? Give feedback.
All reactions