We will try to help you, but without any information, we won’t be able to do so.
For example version information is missing completely. Also: Which app do you use? This is certainly not the shipped editor “Nextcloud Text” but looks more like this one. Can you confirm this?
I think the first screenshot in @herrdeh post is indeed the Markdown App from your link. But the second screenshot is from the Nextcloud Text app.
It does the same for me. If I open any Markdown file with the Nextcloud Text app, it always renders a blank line to end of the codeblocks. It doesn’t matter which app the file was created with. Even if you create the file with the Nextcloud Text App itself, empty lines will be renderd to codeblocks, every time you open the file again.
It has defenitly something to do with how the Nextcloud Text app renders these files. Because if you open the same file in any other markdown app, e.g. Nextcloud Notes, it gets renderd just fine, without any blank space at the end of the code blocks.
Depending on your textfile these empty lines even start to increase… thus you’ll see multiples empty lines after some time.
Old issue which is kind of annoying if you really work with nextcloud text.
Yep …and I don’t know why they have to reinvent the wheel, when there are so many working Markdown Editors already out there. But i’m not a developer and can therefore not really judge what is necessary to properly integrate such a function into an environment like Nextcloud.