-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow spaces between directive fence and name #18
Comments
Heya! :) Some more reasons other than the one provided in the docs:
|
Sorry to keep poking in different directions :-) I would still come down on the side of sticking with adherence to CommonMark conventions, whether that's how links are handled, or code blocks are handled. Inline is a little different, and can have slightly tweaked syntax because it's inline. But a block directive is really (from my current understanding) a more generalized syntax of a fenced code block. In fact, as a markdown user, I would expect a block directive to be able to be used in exactly the same way/places (embedded in lists the same way, etc). That "fenced block" syntax should be the bedrock of the block directive.
I'm not sure that really matters. Since this is decidedly not an HTML document (it's just tolerated), I don't think that should be a factor that overrides the underlying accepted CommonMark syntax. |
I think y0our points are all quite reasonable.
Your point, 3, is indeed important. But I think the other ones are more important.
This is complex, because in other senses it’s much more like a block quote or a footnote definition. But that’s the problem with all these syntaxes: they are all completely different. Seemingly sometimes similar. But no thing in markdown works the same as other things. Which is why I’d like to start out strict. And then maybe we can become looser if there’s more consensus!
It’s not super relevant, but I do see the tag syntax from HTML/XML/MDX/JSX, and generic directives, as solving the same thing. Hence I use them as inspiration. |
Initial checklist
Problem
In the README you mention
CommonMark, for code fences, allows a space(s) between the code fence and the language identifier
gives
https://spec.commonmark.org/dingus/?text=%60%60%60%20%20%20ruby%0Ax%20%3D%201%0A%60%60%60%0A%0A
I would think that we would want to have the same syntax for directive containers 🤔 Not sure it makes sense to have different rules here.
Solution
Allow container directives to have a space between the fence and the name.
would be allowed
Alternatives
The text was updated successfully, but these errors were encountered: