Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

volto-heading-block doesn't create anchors to link to headings #17

Open
kenmanheimer opened this issue Aug 2, 2023 · 2 comments
Open

Comments

@kenmanheimer
Copy link

Unlike Volot core headings, volto-heading-block headings do not include anchors for linking, eg from the Volto table-of-contents block (see #11). This drastically reduces the usefulness of volto-heading-block.

@davisagli
Copy link
Member

The feature to create anchors was added recently in volto (plone/volto#3540). I agree it would be nice to support it here too. Contributions welcome, otherwise it will probably take some time for us to get to it.

@kenmanheimer
Copy link
Author

I really appreciate the quick response, and recognize the low priority. In fact, having discovered that mouse-pasting rendered headers of any level endows them with the full functionality (recognized by ToC and anchors automatically created – I guess that's thanks to plone/volto#3540?), I see that I'm better off creating a heading of the level I want with HTML block, rendering that so I can copy it and paste it instead of the HTML block version, and then I have what I want.

This all suggests that volto-heading-block is the wrong direction to head.

I think all further effort invested should be to provide for easy expression of any level heading. I'm ok with the apparent reluctance to physically and conceptually crowd the selected-text options with more than "H" and "h". But there are plenty of very undisruptive ways to make it easy to use the standard facilities to add h4, h5, and h6:

  • Markdown '#' and '##' recognition could be extended to work for '###', '####', and '#####'!
  • The Heading edit 'Block' sidebar "Advanced" menu could include something to set the heading level to any valid ones. (The Advanced knob already includes something to change how the header looks in the ToC. Options to actually change the heading to the other heading levels seems at least as important!)

I would appreciate a reply but don't require it for you to close this issue. Thanks again for your attention!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants