Skip to content

Commit

Permalink
MarkDown: remove two spaces before line break
Browse files Browse the repository at this point in the history
Link Elephant418/Markdownify#45
Will work because $Parsedown->setBreaksEnabled( true ) + marked.setOptions({ breaks: true })
  • Loading branch information
francoisjacquet authored and fu4d committed Sep 5, 2023
1 parent 8baaa59 commit 99637f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------
Expand Down
6 changes: 5 additions & 1 deletion classes/Markdownify/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 99637f2

Please sign in to comment.