Skip to content

Support for <pre><code>#111

Open
CHHUM wants to merge 3 commits into
evbacher:mainfrom
CHHUM:master
Open

Support for <pre><code>#111
CHHUM wants to merge 3 commits into
evbacher:mainfrom
CHHUM:master

Conversation

@CHHUM

@CHHUM CHHUM commented Aug 16, 2022

Copy link
Copy Markdown

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