tc39 / ecmarkup

An HTML superset/Markdown subset source format for ECMAScript and related specifications
https://tc39.es/ecmarkup/
MIT License
221 stars 63 forks source link

Can structured headers' <ins>/<del> UI be improved? #537

Open justingrant opened 1 year ago

justingrant commented 1 year ago

The fix in #533 enables <ins class="block"> and <del class="block"> to be used for the entire H1 of a structured header. This is an improvement, thanks! However:

Ideally, I'd be able to get the same reader-facing UI I can get with unstructured headers, which is that I can revise the AO name, a parameter name, a parameter type, and/or a return type, and only the changed parts would be shown in red or green background.

The screenshot below shows both problems, and shows examples in the left pane of unstructured headers' UI providing the desired behavior.

image
justingrant commented 1 year ago

In case it's helpful, https://github.com/tc39/ecmarkup/pull/533#issuecomment-1611710276 includes an idea from @gibson042 for how to support more granular <ins> and <del>.