Add snippets for syntax code blocks.

When defining the formal syntax of CSS rules we will use a syntax similar to that of the MDN docs and we want to be able to link directly from the syntax to the CSS types involved, so we cannot do that from within a markdown code block. Instead, we use explicit HTML that we include in two snippets so that it is easier to maintain.
This commit is contained in:
Rodrigo Girão Serrão
2022-12-21 17:32:23 +00:00
parent dfcaada0b8
commit 52b30c8d3b
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
</pre></div>
<!-- Include this snippet when ending a code block that shows the syntax of a CSS rule. -->

View File

@@ -0,0 +1,2 @@
<!-- Include this snippet when starting a code block that shows the syntax of a CSS rule. -->
<div class="highlight" style="padding: 0.25em 1.15em; background: var(--md-code-bg-color);"><pre>