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

Support for <pre><code> #111

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Support for <pre><code> #111

wants to merge 3 commits into from

Conversation

CHHUM
Copy link

@CHHUM CHHUM commented Aug 16, 2022

I know you rejected the enhancement request for this so its unlikely to make it in, but I thought I’d offer it anyway.

This adds an option to use <code><pre> for code blocks, since the recommended way to mark up a code block (both is a <pre> element with a <code> element inside, like so:

<pre><code class="language-css">p { color: red }</code></pre>

I also add a line numbers class in pre for utilities such as prism that respect this. I’ve not made this optional but obviously could do.

I’ve tried to make the changes very minimal and obvious.

If you do want to incorporate the changes I can make the necessary mods to the docs as well.

I shared my copy of the verification document (here, but only you have access, not random passers-by)

CHHUM added 3 commits August 16, 2022 15:09
Support for <pre><code>
Support for <pre><code>
Support for <pre><code>
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

Successfully merging this pull request may close these issues.

1 participant