Code block "markdown" should be shown verbatim

When using the markdown code formatting the expectation is that any special formatting characters should be printed verbatim.

For example: composed_file_name.c. Instead, in Anytype, the following happens: composedfilename.c which effectively makes the code block formatting unusable. Likewise a * b * (c + d) become: a b (c + d) or something similar.

Please make the ‘’ syntax for the code formatting the highest priority rule, and final. Or exclude any other formatting inside it, whichever is closer to your implementation.

Many thanks.

8 Likes

There is one workaround that I found that works sometimes (which should not be considered as a solution for this bug). It consists of writing the full “code sentence”, then highlight it with the mouse and change its format to “code”. This is less convenient than typing it with the opening ` character, then the sentence, and the closing character.

I 100% agree. I’m having tons of issues when I’m taking notes that contain variables or file names because of this.

I find it particularly problematic with underscores (_).

3 Likes

Same. I am also having lots of issues with underscores. We need better text functionality.

The build of the 15th of Dec says it fixed the issue but it’s still present. Or can someone teach me the way we’re supposed to use this feature? I’ll try to post something later showcasing this.

The markdown characters like “*” and “~” aren’t converted anymore. But the style is still applied. So there was something done, but it isn’t fixed.

1 Like

Thanks for the update, hopefully this is picked up soon