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

Class Names for Languages not showing #379

Open
jayaike opened this issue Nov 29, 2020 · 2 comments
Open

Class Names for Languages not showing #379

jayaike opened this issue Nov 29, 2020 · 2 comments

Comments

@jayaike
Copy link

jayaike commented Nov 29, 2020

I am using the fenced-code-blocks extra, but when it generates the HTML, I don't see the class name showing the name of the programming language.

@mithi
Copy link

mithi commented Dec 12, 2020

@nsjcorps

Did you try this

html = markdown2.markdown(YOUR_MARKDOWN_STRING, extras=["fenced-code-blocks", "codehilite"])

and with pygments installed?

@jayaike
Copy link
Author

jayaike commented Dec 12, 2020

Yes, I did but it didnt work. I eventually had to fork it and add the language to the options that gets passed. ie. self.lang

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