mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
2
docs/snippets/syntax_block_end.md
Normal file
2
docs/snippets/syntax_block_end.md
Normal file
@@ -0,0 +1,2 @@
|
||||
</pre></div>
|
||||
<!-- Include this snippet when ending a code block that shows the syntax of a CSS rule. -->
|
||||
2
docs/snippets/syntax_block_start.md
Normal file
2
docs/snippets/syntax_block_start.md
Normal 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>
|
||||
Reference in New Issue
Block a user