BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Markdown: Can we detect URLs and add them as links?

Open alexisfrjp opened this issue 8 months ago • 2 comments

Describe the feature you'd like

When I copy/paste an URL and I save, the URL isn't automatically detected as a link.

If I copy : https://github.com/BookStackApp Github considers it as a link.

Image

Can we have the same behavior with bookstack?

Describe the benefits this would bring to existing BookStack users

Similar behavior in most of the websites, including Word and all.

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

Yes, with more manual operations.

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?

Under 3 months

Additional context

No response

alexisfrjp avatar Mar 20 '25 13:03 alexisfrjp

That would be nice, but for you you can add add < and > around your links to make them actual links.

<http://example.com>

abulgatz avatar Mar 26 '25 12:03 abulgatz

If you are in a position to fully manage the instance, there are means to accomplish this through the Logical Theme System.
For example, you can write something like this in a theme event.
For the preview display, you can use some means to load the script on the front end and configure it for markdown-it.

However, if you use customization, you must be responsible for the upgrade and integrity of your instance yourself.
In some cases, this can cause problems and must be managed with sufficient understanding.

toras9000 avatar Apr 09 '25 15:04 toras9000