https://bugzilla.wikimedia.org/show_bug.cgi?id=50098
James Forrester <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|VisualEditor: Link |VisualEditor: Ordered |annotations should be |application of annotations |applied before other kinds |to avoid fragmentation |to avoid fragmentation | Severity|minor |major --- Comment #4 from James Forrester <[email protected]> --- To re-visit this, some rules I think encapsulate what we want: - Spanning annotations should never be broken (because that changes the render/interaction result), in the following order: -* Links -* Superscript / Subscript -* Underline / Strikethrough So: * <a href="Foo"><i>Foo</i>Bar</a> -> [[Foo|''Foo''Bar]], not ''[[Foo]]''[[Foo|Bar]] * <u>Foo<b>Bar</b></u> -> <u>Foo'''Bar'''</u>, not <u>Foo</u>'''<u>Bar</u>''' * <u>Foo<a href="Bar">Bar</u>Baz</a> -> <u>Foo</u>[[Bar|<u>Bar</u>Baz]], not <u>Foo[[Bar]]</u>[[Bar|Baz]] * <sup>Foo<s>Bar</sup>Baz</s> -> <sup>Foo<s>Bar</s></sup><s>Baz</s>, not <sup>Foo</sup><sup><s>Bar</s></sup><s>Baz</s> - Annotations to links' anchors which are otherwise identical to their target So: * <a href="Foo"><i>Foo</i></a> -> ''[[Foo]]'', not [[Foo|''Foo'']] - Otherwise, annotations should be minimally-spanning So: * <a href="Foo"><i>Bar</i></a> -> ''[[Foo|Bar]]'', not [[Foo|''Bar'']] * <i><b>Foo</b>Bar</i> -> '''''Foo'''Bar'' not '''''Foo'''''<nowiki />''Bar'' Does this achieve what we want? (Obviously some of this is already done by Parsoid.) -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
