RFC 40 - Dendron Plugins #2347
Replies: 4 comments 1 reply
-
Nice writeup! Initial thoughts:
In regards to the registry, can we just use github as the registry? We might want to take some points from the obsidian plugin community: The way they do plugin submissions is by adding on to a json file: |
Beta Was this translation helpful? Give feedback.
-
I would add Themes as a Possible further type that should be included in the Plugins. |
Beta Was this translation helpful? Give feedback.
-
I'm wondering if others have seen what MyST is doing: They have been working on extending CommonMark to merge with a lot of the strengths from reStructuredText, and have been working on other tools like a VS Code extension for parsing, and an npm package for parsing the Markdown to HTML (which then is augmented by whatever Sphinx themes they use in publishing), etc. This has allowed them to do things like implement "directives" in Markdown as a standard format for special properties to things like images, admonitions, and for entry points for plugins to integrate well directly within the Markdown. Sphinx had to go this route, in the Python community, to help make documentation easier, flexible, and extensible in the Sphinx community. I can see this being powerful with plugins in Dendron, giving things like preview and publishing extended rendering powers. Now, Sphinx focuses on the publishing results: generated sites, LaTeX / PDFs, man pages, etc. So they aren't focused on the UX/DX experience in making docs, which is Dendron's major strength. BUT, it's really interesting seeing their flavor of extending Markdown so that plugins have a common entry point through directives, which then get parsed to enhance the generated HTML, etc. With that being said:
I'm not sure if I'm cramming too much information and questions into this that cross over into other RFCs, future RFCs, existing feature requests, etc. but I feel like the overlap at times may be related to what ways Dendron may decide with syntax and what plugins can do with what happens inside of notes (such as if someone added support for another diagram other than Mermaid that could be rendered in preview and in generated sites). This RFC looks more like the standard format in which a plugin is created, distributed, etc. in a way that will allow them to access separate, extensible entry points for pods, note lifecycle hooks, and note traits. Which would mean also future entry points. If that's the case, I'm not sure how much of my discussion post relates directly to the RFC, or if it is just food for thought. 😅 |
Beta Was this translation helpful? Give feedback.
-
Something else bought up is allowing plugins to add markdown extensions (for example, a Dendron plugin that would add admonitions syntax). This could be done by plugins providing a parser/compiler plugin. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the discussion for Dendron Plugins RFC.
Beta Was this translation helpful? Give feedback.
All reactions