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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user