Can't use fixed-width text in web link

What I did:

I create a weblink with ⌘K. I use http://example.com as the URL and foo `bar` baz as the optional display text.

What happened:

It is insert as foo http://example.com baz.

Everything is in fixed with.
The words foo and baz are hyperlinks (and blue), the URL that is displayed instead of bar is not a hyperlink and not blue.

What I expected:

That the hyperlink would be displayed as “foo bar baz”, where the whole string is a hyperlink and just the word bar is in fixed width. The URL should not be displayed at all.

Things that might be helpful to know (Agenda version, OS and model, etc):

If you go to an existing hyperlink using cursor keys, mark a substring of the hyperlink by holding down ⇧, and then press ⌘L you will see a similar corruption of the hyperlink.

Agenda Version 19.0 (302) - Mac App Store

A related but less severe issue happens with bold text:

Again using ⌘K I use http://example.com and foo **bar** baz as the display text.

It gets inserted verbatim, including the asterisks, and the word bar is not bold. However the whole string is correctly marked as a hyperlink.

Unlike with fixed width text, you can mark part of the hyperlink with the keyboard and press ⌘B, and the text will be bolded without corrupting the rest. However, the formatting should have been applied when the hyperlink was created.

OK, thanks, we’ll investigate.

I just realized that I reported the issue here when manually creating hyperlinks, but most of the time I actually just paste them. So just in case that is a different codepath in Agenda, here is a sample script to put the hyperlink in the clipboard:

echo '<font face="Helvetica Neue"><a href="http://example.com">foo `bar` baz</a></font>' |
    textutil -format html -inputencoding UTF-8 -convert rtf -stdin -stdout | pbcopy -Prefer rtf

Run the script, and then use ⌘V to paste into Agenda.

Pasting into e.g. TextEdit works fine, but will of course not expand the Markdown formatting. But pasting into Agenda has the same issues as creating the hyperlink manually via ⌘K.

Thanks! That is useful for testing.