markbind icon indicating copy to clipboard operation
markbind copied to clipboard

Edge case for page/site-nav display of additional content and heading

Open gerteck opened this issue 10 months ago • 0 comments

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

Tell us about your environment

Win 11

MarkBind version

5.5.3

Describe the bug and the steps to reproduce it

Header with name 'Page Nav' or 'Site Nav' both get compiled to html with id='page-nav' or id='site-nav'. Specifically, `` gets compiled into <h2 id="page-nav">... </h2>. This causes it to get "pulled-in" to the navigation menus.

However, this is probably unwanted behavior. This causes some styling issues, and also results in these specific headers disppearing when we are using a mobile view.

Image

Also want to ask about the usability of this particular feature

  • any content or picture etc. that gets pulled in, not placed in a very intuitive way out of box.
  • Only gets pulled in when in mobile view
  • Hard to style, can include custom <style/>, but not very user friendly.

Image

Just for discussion, is there any strong use case for this feature?

It seems like it was the result of the implementation of <site-nav-button> and <page-nav-button> as per https://github.com/MarkBind/markbind/pull/1445

Expected behavior

No response

Anything else?

No response

gerteck avatar Feb 19 '25 18:02 gerteck