Code formatting inside links

Steps to reproduce

Create an item with following content:

[Link with `code` element](dynalist.io)

Expected result

Highlighting of code inside link text.

Actual result

There are raw backticks.

Environment

Chrome, desktop.


Additional information

image

1 Like

I believe itā€™s currently not possible to do that as link titles are parsed as plaintext.

While I do think we can try to fit some formatting into links, Iā€™m unsure how code fragments would render. IMO itā€™s probably rather ugly with the underline in the code.

Are there other people who would like to put code blocks inside link titles?

Example:

image

Please note that itā€™s not code blocks.

Code blocks are more like <pre>. Itā€™s more like <code>, inline elements. Also you can see the correct formatting here, in Discourse.

And youā€™re using nested <span>s with classes instead of <code> somewhy.

Understood. Weā€™ll look to support this around the same time for WYSIWYG.

1 Like