Replies: 3 comments
-
I got it to work. I had to use a ridiculously complicated fix. I put markers in my html like Here is my solution in case anyone else runs into this problem. Put this plugin in a js file and add it to your js code as you do with any extension. Enjoy ...
|
Beta Was this translation helpful? Give feedback.
-
Hey there, I tried to recreate the steps you mentioned (as I understood them):
It seems to work fine (here is an example). However, I might not fully understand the issue you are facing. What am I missing? |
Beta Was this translation helpful? Give feedback.
-
I also had line-numbers and keep-markup plugins. You might try adding them to your test. I did a really bad job of documenting the problem. The example If you really want to chase this, you can clone my repo. It is for a vscode extension. It is at https://github.com/mark-hahn/vscode-definition-stack and the commit is 2ef6e1e471effb082ea491fe46393e76bb5e33f4. I realize this would be ridiculous amount of work for you to do. I would minimize the problem case but I don't have the time and I have a working hack. Sorry. I will put working on this on my to-do list but it will be at least a month before I could get to it. |
Beta Was this translation helpful? Give feedback.
-
When I set an element's innerHtml as
<code>&</code>
and then run the prism highlighting on that element, it is showing as&
in the webview. It shows correctly as<code>&</code>
when prism is not run. In other words it is reversing my escaping and<code>
is being treated as markup. Why is this happening? I will check the prism source code but if this is expected behavior then what is the bext way to fix it?Beta Was this translation helpful? Give feedback.
All reactions