You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework applies blocks to applies_to with new semantics (#527)
* Rework applies blocks to applies_to with new semantics
* Add directive block parsing for applies_to
* update styling
* cleanup and fix tests
* formatting and BOM files cleanup
* fix visibility on constructor
* update {applies} to {applies_to}
Copy file name to clipboardExpand all lines: docs/syntax/index.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@ Nested content that will be parsed as markdown
29
29
30
30
Defining directives with `:::` allows the nested markdown syntax to be highlighted properly by editors and web viewers.
31
31
32
+
33
+
32
34
### Nesting Directives
33
35
34
36
Increase the number of leading semicolons to include nested directives.
@@ -46,6 +48,13 @@ Content displayed in the note admonition
46
48
47
49
## Literal directives
48
50
51
+
All directive are indicated with semicolons except literal blocks. For these you need to use triple backticks.
52
+
53
+
*[Code blocks](code.md)
54
+
*[{applies-to} blocks](applies.md)
55
+
56
+
Since their contents **should not** be parsed as markdown they use backticks. This also ensures maximum interopability with existing markdown editors and previews.
57
+
49
58
Many Markdown editors support syntax highlighting for embedded code blocks. For compatibility with this feature, use triple backticks instead of triple colons for content that needs to be displayed literally:
0 commit comments