9.10a3 General Purpose Block Feedback #1940
Replies: 5 comments 29 replies
-
Didn't see this in #1883 until today. So I'm following up here. I find this a weird one because there is an established (and widely used across implementations) definition list syntax. Of course, it isn't supported everywhere and I know some don't care for it. And anyone is certainly free to define their own syntax with their on extension. I just find it odd to include this in the default set of supported blocks. I would expect this to be separate. But maybe that is just me. I have nothing more to say about it. Of course, this is your project so you can do what you want. |
Beta Was this translation helpful? Give feedback.
-
The API looks pretty comprehensive. After an initial read through the documentation, here are my observations. I'm struggling to see the difference between the The A minor issue, but the I find it curious that the Finally, wow that is a lot of validators. At first I was going to object as YAML already has types, but now I see you are doing a lot more than differentiating between strings, integers, and bool values. This is extremely powerful. I'm not certain all of them will be widely used, but they exist now so no reason to remove them. And of course, as users can define their own, you are not limiting users to the default set. Two things I don't see in the documentation are any direction on how to create your own validator and the import path of the existing validators. Overall I think this looks like a good API. However, I haven't looked at the code or attempted to use it yet. So my impressions could change. But I'm not sure when I'll have time for that. |
Beta Was this translation helpful? Give feedback.
-
I'm thinking about changing the argument delimiter from The only reason I'm considering this change is that some syntax highlighters can think that the declaration is the start of a table and can affect some highlighting afterwards. I haven't found any actual Markdown parsers that get confused by this, but I'd like the final syntax to be as un-intrusive as possible. So, as a summary, the change would be changing this:
to
Again, I'm open for people to suggesting something different, but the main options I see are encapsulating the block name with something (quotes, brackets, etc.) or using some delimiter. I think I'm okay with just changing |
Beta Was this translation helpful? Give feedback.
-
The next version will be Beta 1. We've cleaned up some API things and documented some missing parts. Assuming no issues, I plan to release generic blocks to the public in an official release, but marked as "experimental". Some changes coming:
Feel free to get in your last remarks, opinions criticisms. I hope to create the beta either today or tomorrow. Final input will be considered for the official release. |
Beta Was this translation helpful? Give feedback.
-
Ended up getting the beta out. The new discussion is here: #1961. Now's the time to get your feedback in before this goes public. Locking this discussion in favor of the Beta 1 discussion. |
Beta Was this translation helpful? Give feedback.
-
Alpha 3
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.a3. It should be noted that any and all feedback is welcome, but the current focus is on the API for creating block plugins.
Changes in Alpha 3:
yaml_indent
option has beenremoved.
Feedback Needed
Syntax
We still have the following open syntax question. Currently, we have one general option that is only available during the alpha (and maybe beta) stage. By the final release, we'd like to remove this option with a permanent solution.
:::
or///
? Currently, the optioncolon_syntax
allows selecting between the current default syntax of///
and the colon syntax (:::
). Which is generally preferred by the community?API
We are looking for general feedback on the API.
Beta Was this translation helpful? Give feedback.
All reactions