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.
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.
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.
No, if I copy a line and then transform it to “code” it works as specified here.
What doesn’t work is if you start typing ` then whatever you want to be code, then the closing one. Or if you go manually into a line of code and start adding chars like _ or *.
this_is_a_test.c this_is_a_test_with*stars*.c
line 3 is the source of line 2 copy-pasted which shows the correct behavior.