Replies: 5 comments 1 reply
|
I will add it with the macros support. |
|
Hi @perber, thank you for your reply, and confirmation that this is something that would add value to LeafWiki. Looking at the roadmap, it may appear that the macro functionality may be somewhat far into the future? I have made start on implementing this functionality, which involves extending Before I continue, is this something that you would entertain as a PR, or would you prefer to implement it in the (future) macro functionality? (PS - I am new to LeafWiki, and have just migrated from another wiki that I have been using for a short while. I'd just like to say, what a great polished product! Keep up the great work.) |
|
Hi @ribbal, Thanks for your kind words. I already generated an implementation plan. If you like I could share it with you. If you would like to give it a try. Let me know. My feeling is that I could start with the Macro support in september. |
|
@perber, I've created a PR #1382 that should support the collapsible block functionality that we discussed above. Hope it is OK?
If you could share this, I would be most interested to see it. Thanks. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
It would be great if LeafWiki provided native support for collapsible sections within page content.
Motivation
As documentation grows, pages can become long and harder to navigate. Being able to collapse optional or advanced content would improve readability while still keeping the information available when needed.
Some examples include:
Current Workaround
Since LeafWiki supports HTML, it's currently possible to achieve this using the standard HTML
<details>and<summary>elements:While this works, it requires authors to drop into HTML for what feels like a common documentation pattern.
Proposed Solution
Provide native Markdown support for collapsible sections. For example, a syntax such as (defaults to collapsed):
and the following (defaults to expanded):
(or another syntax that fits LeafWiki's existing Markdown standards.)
In both these examples, the markdown would be rendered into the
<details>/<summary>html example shown above.Benefits
I'd be happy to help test or provide feedback if this feature is implemented.
A native Markdown syntax would make collapsible sections easier to author.
All reactions