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

Use with gatsby-remark-prismjs #13

Closed
spences10 opened this issue Nov 26, 2018 · 2 comments
Closed

Use with gatsby-remark-prismjs #13

spences10 opened this issue Nov 26, 2018 · 2 comments

Comments

@spences10
Copy link

Hi,

Thanks for this plugin I now have a nice embed, but now no code highlighting 🙃

When I configured Prism more (I was just using the default config) I get this:

image

So it's being treated as inline code now...

Is there a way to use both without them clashing?

@spences10
Copy link
Author

As a workaround, I have explicitly added languages to the classPrefix in gatsby-remark-prismjs in an array, like: classPrefix: ['language-js', 'language-bash']

I don't think this is a solution though as if you want to use the two together and use many languages you have to define a long list for use in the plugin.

@d4rekanguok
Copy link
Contributor

The latest version of this plugin now supports custom markers (i.e using [[youtube: ...]] instead of `youtube:...`), so it could be a good way to solve this issue:

{
    resolve: `gatsby-remark-embed-video`,
    options: {
        beginMarker: `{{`,
        endMarker: `}}`
    }
},

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

3 participants