diff --git a/CHANGES.md b/CHANGES.md index 47ace4602..38ff8de36 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -25,6 +25,7 @@ Changes in 11.2 - Dynamic Daily Attendance calculation based on total course period minutes in UpdateAttendanceDaily.fnc.php & Configuration.php - Add help text for Dynamic Daily Attendance calculation in Help_en.php - SQL new default is 0 for ATTENDANCE_FULL_DAY_MINUTES Config option in rosariosis.sql & rosariosis_mysql.sql +- MarkDown: remove two spaces before line break in Markdownify/Converter.php Changes in 11.1.2 ----------------- diff --git a/classes/Markdownify/Converter.php b/classes/Markdownify/Converter.php index dda1bfa25..7aff7c8db 100644 --- a/classes/Markdownify/Converter.php +++ b/classes/Markdownify/Converter.php @@ -1058,7 +1058,11 @@ protected function handleTag_hr() */ protected function handleTag_br() { - $this->out(" \n" . $this->indent, true); + // FJ remove two spaces before line break. + // @link https://github.com/Elephant418/Markdownify/issues/45 + // Will work because $Parsedown->setBreaksEnabled( true ) + marked.setOptions({ breaks: true }) + //$this->out(" \n" . $this->indent, true); + $this->out("\n" . $this->indent, true); $this->parser->html = ltrim($this->parser->html); }