File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def fence(node: "RenderTreeNode", context: "RenderContext") -> str:
5050 is_directive = lang .startswith ("{" ) and lang .endswith ("}" )
5151 unformatted_body = node .content
5252
53- if node .type == "colon_fence" :
53+ if node .type == "colon_fence" or is_directive :
5454 fence_char = ":"
5555 # Info strings of backtick code fences can not contain backticks or tildes.
5656 # If that is the case, we make a tilde code fence instead.
Original file line number Diff line number Diff line change @@ -434,37 +434,37 @@ Content
434434Content
435435```
436436.
437- ``` {some-directive} args
437+ ::: {some-directive} args
438438---
439439option1: 1
440440option2: hello
441441---
442442Content
443- ```
443+ :::
444444
445- ``` {some-directive} args
445+ ::: {some-directive} args
446446---
447447option1: 1
448448option2: hello
449449---
450450Content
451- ```
451+ :::
452452
453- ``` {some-directive} args
453+ ::: {some-directive} args
454454---
455455option1: 1
456456option2: hello
457457---
458458Content
459- ```
459+ :::
460460
461- ``` {some-directive} args
461+ ::: {some-directive} args
462462---
463463option1: 1
464464option2: hello
465465---
466466Content
467- ```
467+ :::
468468.
469469
470470
@@ -475,11 +475,11 @@ MyST directive empty YAML
475475Content
476476```
477477.
478- ``` {some-directive} args
478+ ::: {some-directive} args
479479---
480480---
481481Content
482- ```
482+ :::
483483.
484484
485485MyST directive no content
@@ -489,20 +489,20 @@ MyST directive no content
489489
490490```
491491.
492- ``` {some-directive} args
492+ ::: {some-directive} args
493493---
494494letter: a
495495---
496- ```
496+ :::
497497.
498498
499499MyST directive, no opts or content
500500.
501501``` {some-directive} args
502502```
503503.
504- ``` {some-directive} args
505- ```
504+ ::: {some-directive} args
505+ :::
506506.
507507MyST colon fenced directive with title
508508.
You can’t perform that action at this time.
0 commit comments