BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

<code> tag in header causes whitespace issue in sidebar-page-nav

Open WyattBest opened this issue 1 year ago • 0 comments

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

WyattBest avatar Feb 08 '24 18:02 WyattBest