1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-30 19:00:32 +02:00

V2.12.0 fix empty lines after codeblocks

This commit is contained in:
trendschau
2024-11-28 22:55:52 +01:00
parent a88129b86c
commit 031c75b530

View File

@@ -1104,7 +1104,10 @@ class ParsedownExtension extends \ParsedownExtra
# keep empty lines in pre-tags
if($CurrentBlock['type'] == 'FencedCode' && isset($current['text']))
{
$current['text'] .= "\n";
# Append a newline only if it's not the last blank line in the block
if (empty($CurrentBlock['complete'])) {
$current['text'] .= "\n";
}
}
continue;
}