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
A plugin to easily set Mistune plugins #1076
Comments
Also see the set of Directives which special are optional Mistune plugins: https://mistune.readthedocs.io/en/latest/directives.html |
While working on #1074, I had thought about adding a setting to the |
I've started playing with this (and with using hatch to manage the packaging and test and dev environments) at https://github.com/dairiki/lektor-mistune-config. |
Hatch maintainer here! Let me know if I can help |
Hi @ofek! Thank you for the attention! Basically, I'm very happy with how easy the transition was. It was nice how easy it was to convert our frontend esbuild-based build process into a build-hook. (It's a huge win that with the esbuild build hooked into the PEP517 build process we gain the ability to install directly from git using pip.) It's nice, also, to have the configuration for the test venvs and the suggested dev venv all in the same place. The main feature I haven't yet managed to translate to hatch is my use of tox's parallel mode. I'm used to being able to run Is there a suggested way to run a command in a whole matrix of hatch environments in parallel? |
No, but that is planned! |
Inspired by #1074, I propose an official plugin that allows you to easily set which Mistune plugins you want in a project. This could read a lektor plugin config file to set all listed plugins. At least, there is a full set of Mistune-supplied plugins listed here https://mistune.readthedocs.io/en/latest/plugins.html, and it would be great if a user could simply list which of those should be set. As a nuance, it would be nice to either add plugins, in addition to those defaulted in Lektor (again see #1074), or set a complete list, which would in effect allow disabling even some of those default plugins as well as adding plugins.
If the community creates more Mistune plugins that are external, it would be nice to pull those in with similar ease, but that could be as messy as current Lektor plugin management, potentially. AFAICT there isn't a mature story for an external Mistune plugin ecosystem yet, though.
Given Lektor's currently strong tie to Mistune, and the existence of other Mistune-specific Lektor plugins, I think this ought to be an official plugin for this project.
The text was updated successfully, but these errors were encountered: