9.10a2 General Purpose Blocks Feedback #1883
Replies: 7 comments 29 replies
-
Why was the yaml block replaced with that / (or :) and indent solution. And at least for docs that use / (i.e. as part of an rest api doc) is escaping the / annoying, so the colon syntax is at least less breaking here (I assume). So, I for my part would prefer the colon syntax, especially since it feels more natural for me after working with Docosaurus a bit and using the CommonMark solution they have (I know python markdown doesn't follow CommonMark, but who says you couldn't encourage such a format?) |
Beta Was this translation helpful? Give feedback.
-
I am strongly opposed to any prefix other than whitespace for the YAML block as I detailed previously. In short, editors have tools/features for editing indented blocks, but not blocks prefixed by random characters. I do not want to be fighting my editor on this. For this reason alone, I would much prefer delimitators over prefixes despite the objections raised to them. I also strongly prefer |
Beta Was this translation helpful? Give feedback.
-
This would probs be a bit weird, but what about a JSON-like aproach for the meta stuff? Like for example:
...And people could minify/condense it if needed:
Tho, this could (and probably will) conflict with the meta plugin most likely, so another character set would be needed then ( Just a random idea. |
Beta Was this translation helpful? Give feedback.
-
I've been a bit busy, but I'm hoping to start getting an alpha 3 ready soon. The focus will be on the API. I'm thinking, that I'm probably going to end up using the As for per-block configs in the header, I'll probably go with an indentation approach for now. My general worry is that I'm not going to get enough feedback before I release this into the wild, so I'm starting to think that even after we have an official release with this out, I'll probably keep it marked as experimental for a while. I feel like I'm not really going to get the true feedback I need related to the API until it is formally shipped in an official release. But hopefully, I'll be able to get some during the alpha/beta period. |
Beta Was this translation helpful? Give feedback.
-
For me, pandoc compatibility is very useful/important. Hence, I'd prefer the triple colons syntax, and would appreciate if also the other features are somewhat supported, i.e., https://pandoc.org/MANUAL.html#divs-and-spans |
Beta Was this translation helpful? Give feedback.
-
Been working on the next alpha. I think I have most of the API documented now. Will be adding a replacement for "definitions" extension as well. Simply converts blocks that are not I haven't settled on the name. Currently using
<dl>
<dt>word1</dt>
<dt>word2</dt>
<dd>
<p>A definition</p>
</dd>
<dd>
<p>Another definition</p>
</dd>
</dl> I thought about allowing the word to be placed on the declaration line:
But sense you can define multiple words, it seemed this might be awkward.
I guess if people asked for it, we could make placing the first word in the declaration optional for one word cases, but for now, I'm just going to leave it out. |
Beta Was this translation helpful? Give feedback.
-
A pre-release for Alpha 3 has been made. Discussion for Alpha 3 is here: #1940. While the Closes this discussion in favor of the linked Alpha 3 topic. |
Beta Was this translation helpful? Give feedback.
-
Alpha 2
Documentation: https://facelessuser.github.io/pymdown-extensions/extensions/blocks/
The purpose of this discussion is to allow feedback for the latest iteration of General Purpose Blocks 9.10.a2. It should be noted that any and all feedback is welcome, but there is a focus on feedback specifically related to syntax. In particular, we have two main points we are hoping to get feedback on, but again, any feedback on syntax is welcome.
Hopefully, Alpha 2 will be the last related alpha to finish nailing down syntax. It is hoped that we can begin the API discussion in the next alpha.
Changes in Alpha 2:
line is part of the config.
yaml_indent
to control whether per-block YAML configs use indentation or aleading special character:
/
for///
syntax and:
for:::
syntax (colon_syntax
must be true to use:::
syntax).
/
character can be escaped when registering theblocks
extension.Feedback Needed
Currently, we have two general options that are only available during the alpha (and maybe beta) stage. By the final release, we'd like to remove these options with a permanent solution.
Which is preferred, syntax with
:::
or///
? Currently, the optioncolon_syntax
allows selecting between the current default syntax of///
and the colon syntax (:::
). Which is generally preferred by the community?The new general purpose Blocks extension allows YAML configs in block headers to set per block options. A change in Alpha 2 now requires YAML configs to be either prefixed with
/
or:
(ifcolon_syntax
is enabled) or 4 spaces ifyaml_indent
option is enabled. Which is generally preferred by the community, using indentation or a special character like/
?Using a special character:
Using indented syntax:
Beta Was this translation helpful? Give feedback.
All reactions