kitconcept / volto-heading-block

MIT License
2 stars 1 forks source link

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

Open kenmanheimer opened 1 year ago

kenmanheimer commented 1 year ago

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 commented 1 year ago

The feature to create anchors was added recently in volto (https://github.com/plone/volto/pull/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 commented 1 year ago

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 https://github.com/plone/volto/pull/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:

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