Add JS event to alter config passed to languages (eg., autoCloseTags) for fine-tuning markdown editor behavior #5329

Open
opened 2026-02-05 09:58:07 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @prohtex on GitHub (Jun 24, 2025).

Describe the feature you'd like

Per @ssddanbrown:

Digging into this, it seems like this is enabled at the language level (via a autoCloseTags⁠ option), and the markdown language has its own control for this and here's where the lang is configured in BookStack sources:

BookStack/resources/js/code/languages.js
Line 52 in 8bc6e75
 mdown: async () => markdown(), 
Can't see any (simple) way to alter this from what we expose already. I wouldn't want to expose events/config just for this. Could maybe add a JS event for altering the config passed to languages (for those which allow it).

Describe the benefits this would bring to existing BookStack users

Allow the user to adjust the behavior of the markdown editor with JS events

Can the goal of this request already be achieved via other means?

No

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

Not using yet, just scoping

Additional context

No response

Originally created by @prohtex on GitHub (Jun 24, 2025). ### Describe the feature you'd like Per @ssddanbrown: ``` Digging into this, it seems like this is enabled at the language level (via a autoCloseTags⁠ option), and the markdown language has its own control for this and here's where the lang is configured in BookStack sources: BookStack/resources/js/code/languages.js Line 52 in 8bc6e75 mdown: async () => markdown(), Can't see any (simple) way to alter this from what we expose already. I wouldn't want to expose events/config just for this. Could maybe add a JS event for altering the config passed to languages (for those which allow it). ``` ### Describe the benefits this would bring to existing BookStack users Allow the user to adjust the behavior of the markdown editor with JS events ### Can the goal of this request already be achieved via other means? No ### Have you searched for an existing open/closed issue? - [x] I have searched for existing issues and none cover my fundamental request ### How long have you been using BookStack? Not using yet, just scoping ### Additional context _No response_
OVERLORD added the 🔨 Feature Request label 2026-02-05 09:58:07 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5329