[Bug Report]: Bare URL is not clickable #2452

Closed
opened 2026-02-05 04:11:34 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @rcdailey on GitHub (Oct 23, 2021).

Describe the Bug

When editing in markdown mode, if I paste in a url like https://google.com, that link is not clickable in both the preview pane and final page view after saving.

Steps to Reproduce

  1. Ensure markdown mode is enabled for editing pages in settings.
  2. Create a new page.
  3. In the left pane, type https://google.com.
  4. Observe in the preview (right pane) the link is not a clickable hyperlink.
  5. Save the page.
  6. Notice in the final view of the page, the link is still not clickable.

Expected Behaviour

When I paste in a bare URL, I expect:

  • That URL to be clickable.
  • The URL to be underlined and appropriately styled to appear to be clickable.

I can work around this today by doing [https://google.com](https://google.com) but this should not be necessary.

Screenshots or Additional Context

image

Exact BookStack Version

v21.08.6

PHP Version

7.4.24

Hosting Environment

Docker via image ghcr.io/linuxserver/bookstack.

Originally created by @rcdailey on GitHub (Oct 23, 2021). ### Describe the Bug When editing in markdown mode, if I paste in a url like `https://google.com`, that link is not clickable in both the preview pane and final page view after saving. ### Steps to Reproduce 1. Ensure markdown mode is enabled for editing pages in settings. 2. Create a new page. 2. In the left pane, type `https://google.com`. 3. Observe in the preview (right pane) the link is not a clickable hyperlink. 4. Save the page. 5. Notice in the final view of the page, the link is still not clickable. ### Expected Behaviour When I paste in a bare URL, I expect: - That URL to be clickable. - The URL to be underlined and appropriately styled to appear to be clickable. I can work around this today by doing `[https://google.com](https://google.com)` but this should not be necessary. ### Screenshots or Additional Context ![image](https://user-images.githubusercontent.com/1768054/138564264-0f4a964a-2ee9-4305-a579-018f7a43cd07.png) ### Exact BookStack Version v21.08.6 ### PHP Version 7.4.24 ### Hosting Environment Docker via image `ghcr.io/linuxserver/bookstack`.
OVERLORD added the 🌔 Out of scope label 2026-02-05 04:11:34 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 23, 2021):

Hi @rcdailey,
Thanks for the clear report.

For markdown use within BookStack we standardise on commonmark where possible. Within commonmark links are not automatically parsed although there is a shorter autolink syntax available:

<https://google.com>

https://spec.commonmark.org/0.30/#autolinks

@ssddanbrown commented on GitHub (Oct 23, 2021): Hi @rcdailey, Thanks for the clear report. For markdown use within BookStack we standardise on commonmark where possible. Within commonmark links are not automatically parsed although there is a shorter autolink syntax available: ```markdown <https://google.com> ``` https://spec.commonmark.org/0.30/#autolinks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2452