Context: there are several ways to create a code block. A <pre> with a <code> within is common. Some WordPress plugins though will use a <pre> without a <code> (syntaxhighlighter and enlighter are two that were reported).
This PR consolidates these cases in a way that results in a markdown code block (triple backticks). The code language is also applied when provided in a WordPress HTML comment above the block.
Context: there are several ways to create a code block. A
<pre>
with a<code>
within is common. Some WordPress plugins though will use a<pre>
without a<code>
(syntaxhighlighter and enlighter are two that were reported).This PR consolidates these cases in a way that results in a markdown code block (triple backticks). The code language is also applied when provided in a WordPress HTML comment above the block.