Markdown: better <br/> placement
This commit is contained in:
parent
6e229bf53c
commit
77c0ea7f57
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class CustomMarkdown extends \Michelf\Markdown
|
|||
|
||||
protected function doHardBreaks($text)
|
||||
{
|
||||
return preg_replace_callback('/\n/', [&$this, '_doHardBreaks_callback'], $text);
|
||||
return preg_replace_callback('/\n(?=[\[\]\(\)\w])/', [&$this, '_doHardBreaks_callback'], $text);
|
||||
}
|
||||
|
||||
protected function doStrike($text)
|
||||
|
|
Loading…
Reference in a new issue