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

Question: Is there a way to change the default language-xxxx #1312

Closed
akshaybabloo opened this issue Feb 28, 2018 · 4 comments
Closed

Question: Is there a way to change the default language-xxxx #1312

akshaybabloo opened this issue Feb 28, 2018 · 4 comments
Labels

Comments

@akshaybabloo
Copy link

I am using Squarespace for hosting the website and for some reason the code block they generate has a default class lang- and when I put, say, language-python it comes out as lang-language-python 😫.

Is there any way I could allow prism to look at lang-python instead language-python? I know that I could just replace the class name with language-python buy before I start experimenting I just wanted to know this.

@benkimball
Copy link
Contributor

Can you add a class name to a parent element? For example if you add class=“language-ruby” to your body tag, it will be inherited by any code blocks it contains.

@Golmote
Copy link
Contributor

Golmote commented Feb 28, 2018

Hi! Prism does supports lang-xxx too. So you should be able to use lang-python directly!

@akshaybabloo
Copy link
Author

@benkimball Can't do that in Squarespace, unfortunately.

@Golmote Thanks, I didn't know that. Is it documented somewhere?

@Golmote
Copy link
Contributor

Golmote commented Mar 1, 2018

@akshaybabloo I don't think so... This behaviour has been here for a very long time. I traced it back to this commit de85c1a.

I agree it should appear somewhere in the docs.

@Golmote Golmote added the docs label Mar 1, 2018
@Golmote Golmote closed this as completed in a9e76db Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants