Text disappears in editor - link in formatted style

Running 10.3, recent upgrade. Noticed something strange, is it supposed to work like this?

Created a page, and typed a couple of lines, and applied the “formatted” paragraph style to it. Looked fine after save/view.

Back in edit, I highlighted a bit of text and inserted a link (to a URL). The editor showed the text, with expected link color. Cool, save/view.

But - now the text is gone. And I noticed, that in the step above, if I switched to the source view after the edit and before the save, it’s not there either.

Are links not allowed in a formatted paragraph?

The “Formatted” paragraph style generates a <pre> HTML tag which is converted on save to the Verbatim wiki syntax element. The content within {{{...}}} is considered plain text so you can’t put a link inside a Verbatim block. That’s a constraint of the wiki syntax.

In HTML, the <pre> tag supports links within its content, that’s why the WYSIWYG editor, which acts on HTML, allows it.

The conversion between HTML and (basic) wiki syntax is not always 1 to 1. HTML is more powerful so there are cases when some HTML content can’t be converted to (basic) wiki syntax and thus is dropped.

What the WYSIWYG editor can do, but it’s not always easy, is to disable the features that could generate unexpected content in a given context. In this case, disable the link when the caret is inside a “Formatted” paragraph.

OK, I can see that. Make sense, although was confusing and surprising behavior. Since the objective was to basically just get single spacing there, can use shift-enter instead. Thanks for the explanation.