Language specifier for multi-line code block in exported markdown

Is your feature request related to a problem? Please describe.

Multi-line code blocks in the exported markdown files currently do not have the language specifier which makes the Markdown viewers to fallback to no syntax highlighting

Describe the solution you’d like

Adding the language selected in the code block within anytype to the exported markdown will result in the proper syntax highlighting in markdown viewers as well

Describe alternatives you’ve considered

Presently, the required language specifier can be manually added to each code block in the exported markdown file, but it is not ideal

Additional context

This is the code block in anytype with the language selected

The below is the currenly exported markdown content:

which results in the markdown rendered displaying the code as plain text as such

if the exported markdown are added with the language specifier such as:

then the render shows the code along with syntax highlighting:

5 Likes