Skip to content

Commit eca4bd6

Browse files
spresnaccolinodell
authored andcommitted
Always put header on a new line (#172)
1 parent 6d95456 commit eca4bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Converter/HeaderConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function convert(ElementInterface $element)
3535
$style = $this->config->getOption('header_style', self::STYLE_SETEXT);
3636

3737
if (strlen($element->getValue()) === 0) {
38-
return '';
38+
return "\n";
3939
}
4040

4141
if (($level === 1 || $level === 2) && !$element->isDescendantOf('blockquote') && $style === self::STYLE_SETEXT) {

0 commit comments

Comments
 (0)