Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write() doesn't honor code highlighted with Prism #63

Closed
FoamScience opened this issue Feb 11, 2020 · 2 comments
Closed

write() doesn't honor code highlighted with Prism #63

FoamScience opened this issue Feb 11, 2020 · 2 comments

Comments

@FoamScience
Copy link

Hi @rafaelcamargo,

First, thanks for the great package; look what I did it with it in around a half-an-hour:
Code Demo App

But, now I'm facing a problem with the editor's write() method, it renders the highlighted code
as plain HTML ...

Sample Code demo app usage

The code I'm trying to show:

function name () {doSomething();}

What I verified was:

  • This has nothing to do with the position of the container (nor its styling apparently)
  • The terminal app works fine
  • The text to be highlighted is pulled out of a YAML file, but putting it in a const code as is produces the same output.

What I suspect to cause the problem:

Maybe nesting things in a function. Check How I'm doing this.
It's likely that passing demo as an argument like this is causing this issue but I don't know how to debug this kind of stuff 😢

I hope you could help me figure out what I'm missing here; and thanks in advance

@rafaelcamargo
Copy link
Member

Hey @FoamScience! Very glad you liked it 🍻

At a first glance, seemed that you're not using the latest version of the lib.
I just open a Pull Request in your project.

Best!

@FoamScience
Copy link
Author

Can't believe I didn't think of that! Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants