Skip to content

Non breaking spaces in titles can result in words combining in page nav #4836

Description

@WyattBest

Describe the Bug

Using <code> tags in a header looks fine on the page but causes a problem in the sidebar navigation. Specifically, whitespace is lost.

image
image

Steps to Reproduce

  1. Use markdown like <h5 id="bkmrk-why%C2%A0void%3F">Why&nbsp;<code>void</code>?</h5> in a page.
  2. Save the page.

Example: https://resource.reworkflow.com/books/slate/page/birth-fields-on-custom-per-page#bkmrk-why%C2%A0void%3F

Expected Behaviour

Space between regular text and text should remain in the nav link.

Screenshots or Additional Context

Any space between regular text and text is lost in the nav link.

Browser Details

Firefox 122.0 on Windows 10

Exact BookStack Version

v23.12

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions