We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fbb4d1 commit 9a9e6f1Copy full SHA for 9a9e6f1
βmdformat_myst/_directives.pyβ
@@ -100,6 +100,8 @@ def format_directive_content(raw_content: str) -> str:
100
101
102
def parse_opts_and_content(raw_content: str) -> tuple[str, str] | None:
103
+ if not raw_content:
104
+ return None
105
lines = raw_content.splitlines()
106
line = lines.pop(0)
107
yaml_lines = []
βtests/data/fixtures.mdβ
@@ -394,3 +394,12 @@ letter: a
394
---
395
```
396
.
397
+
398
+MyST directive, no opts or content
399
+.
400
+``` {some-directive} args
401
+```
402
403
+```{some-directive} args
404
405
0 commit comments