- Issue created by @raffaelj
- Status changed to Closed: outdated
8 months ago 10:32am 29 April 2024 moved documentation of md2drupal.sh to my snippets repo: https://codeberg.org/raffaelj/drupal-snippets/src/branch/main/md2drupal
# code block without class should suffer from double escaping, PHP syntax highlighting via class="language-php" will be added by default <p>paragraph</p> <?php echo $test; ?> # It gets wrapped in another pre tag when saving. # When switching to rich text editor, the surrounding <pre> tag is removed and moved above the current tag as empty <pre></pre> tag.
# code block without wrapping <pre> (not escaped) is correctly wrapped in a single <pre> tag
# and without class should suffer from double escaping, PHP syntax highlighting via class="language-php" will be added by default
<p>paragraph</p>
<?php echo $test; ?>
code block with "language-" class should prevent double escaping and prevent PHP syntax highlighting
<p>paragraph</p>
<?php echo $test; ?>
# code block with "language-php" class should prevent double escaping and should use PHP syntax highlighting
<p>paragraph</p>
<?php echo $test; ?>
<!-- code block with "language-html" class should prevent double escaping and should use HTML syntax highlighting -->
<p>paragraph</p>
<?php echo $test; ?>
Original markup in plain text editor:
<pre><code>
# code block without class should suffer from double escaping, PHP syntax highlighting via class="language-php" will be added by default
<p>paragraph</p>
<?php echo $test; ?>
# It gets wrapped in another pre tag when saving.
# When switching to rich text editor, the surrounding <pre> tag is removed and moved above the current tag as empty <pre></pre> tag.
</code></pre>
<code>
# code block without wrapping <pre> (not escaped) is correctly wrapped in a single <pre> tag
# and without class should suffer from double escaping, PHP syntax highlighting via class="language-php" will be added by default
<p>paragraph</p>
<?php echo $test; ?>
</code>
<pre><code class="language-">
code block with "language-" class should prevent double escaping and prevent PHP syntax highlighting
<p>paragraph</p>
<?php echo $test; ?>
</code></pre>
<pre><code class="language-php">
# code block with "language-php" class should prevent double escaping and should use PHP syntax highlighting
<p>paragraph</p>
<?php echo $test; ?>
</code></pre>
<pre><code class="language-html">
<!-- code block with "language-html" class should prevent double escaping and should use HTML syntax highlighting -->
<p>paragraph</p>
<?php echo $test; ?>
</code></pre>
Closed: outdated
0.0
Miscellaneous
moved documentation of md2drupal.sh to my snippets repo: https://codeberg.org/raffaelj/drupal-snippets/src/branch/main/md2drupal