Following on from this discussion:
I have done some further testing and confirmed the current behaviour in Cwicly.
When you link a Heading block, the structure will be:
<h1>
<a href="#">
[...contents...]
</a>
</h1>
Wrapping the contents of the original tag with the link.
When you link a Paragraph or a Div block, the structure will be:
<a href="#">
[...contents...]
</a>
Effectively replacing (and therefore losing) the original tag.
This inconsistency may not be apparent to new users and unless it happens to become an issue with any styles that target those particular tags, even seasoned Cwicly users may not notice it at first.
In some specific cases (e.g. with a Paragraph block) we could simply select the contents and link it, but the inline link feature misses the enhanced features of Cwicly blocks’ link dialog, so that is not necessarily equivalent.
I am requesting a new setting be added to Cwicly that enables a consistent behaviour (preferably following the same pattern as the Heading block).
Alternatively, a switch to toggle this behaviour could be added to the link dialog.
There are many good reasons for this, the biggest one being semantics. Tags have a purpose and a meaning and by replacing tags with the <a>
tag, if we wish to retain the original meaningfulness we have to wrap it (in the same type of block we originally chose!). This feels very redundant and providing a consistent behaviour to retain the tags is more in line with the amazing spirit of Cwicly to simplify and speed up the developer experience.
Thank you for your consideration.