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

feat: allow control of <pre> class for prism code blocks. #199

Closed
BerkeleyTrue opened this issue Mar 15, 2024 · 1 comment · Fixed by #200
Closed

feat: allow control of <pre> class for prism code blocks. #199

BerkeleyTrue opened this issue Mar 15, 2024 · 1 comment · Fixed by #200

Comments

@BerkeleyTrue
Copy link
Contributor

Prism requires you to use code blocks within pre blocks with "language-xxx" classes. Currently there is an option to set code class through code-style option. For proper syntax highlight, we would need access to pre class in the same way.

Prism forces you to use the correct element for marking up code: <code>. On its own for inline code, or inside a <pre> for blocks of code. In addition, the language is defined through the way recommended in the HTML5 draft: through a language-xxxx class.
@yogthos
Copy link
Owner

yogthos commented Mar 15, 2024

Any chance you'd be up to do a pr for the feature? :)

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

Successfully merging a pull request may close this issue.

2 participants