Show table of contents within page editor #4218
Labels
No labels
Focus: A11y
Focus: Admin/Meta
Focus: Authentication
Focus: Back-End
Focus: Database
Focus: Design & UX
Focus: Editor - Markdown
Focus: Editor - WYSIWYG
Focus: Export System
Focus: Front-End
Focus: Translations
Focus: View Customization
Is: Docs Update
Is: Enhancement
Is: Priority
Is: Security
Is: Upstream
Status
Blocked
Status
Open to discussion
Status
Out of scope
Status
Pending Validation
Type
API Request
Type
Bug Report
Type
Feature Request
Type
Happy feedback
Type
Maintenance
Type
Question
Type
Support
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bookstack/bookstack#4218
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the feature you'd like
Add a toc sidebar in md editor, so that you can more conveniently know where you are writing/changing and what you have written
Side request for markdown preview color syntax highlighting
By the way, markdown editor preview's code seems to have no color
Describe the benefits this would bring to existing BookStack users
you can more conveniently know where you are writing/changing and what you have written
Can the goal of this request already be achieved via other means?
no
i do not know how to view the directory structure until i save the page
Have you searched for an existing open/closed issue?
How long have you been using BookStack?
0 to 6 months
Additional context
System Version
BookStack v23.02.3
Thanks for the request, I'm going to rename this to be editor generic since I look to align feature-sets across editors, especially for supporting elements like this.
I'll also remove the mention of the syntax/code color wording, since that's a completely separate point and is known/on-purpose, as we've chosen to prioritise performance/stability over syntax highlighting in this case (Since code syntax highlighting/rendering is perform via an additional component).
If anyone is interested, I've done a quick bookstack hack to display a clickable ToC inside the editor (in the comment tab).
The code (with screenshot example) is here : https://gitlab.cemea.org/-/snippets/4
It's not pretty, but it works :-)
+1 a table of contents would be a really useful feature!
+1 I'd also love to have a table of contents.. This is how it looks within Clickup:
@GuillaumeV-cemea thanks for the workaround! It seems to only work with the old WYSIWYG-Editor, not the one, that is currently in beta.
Why not place the table of contents in the editor on the left sidebar, just like in the reading view? There is plenty of space there. Especially with long texts, the table of contents is indispensable if you need to jump around in the document or want to find your way around.
This has now been added via #6131, and will be part of the next feature release.
Will therefore close this off.