fix several rendering issues in markdown (#3588)
- fix double escaping of html entities: " instead of " - fix table is missing css class "table" - fix quotes are not rendered
This commit is contained in:
@@ -18,7 +18,7 @@ class ParsedownExtension extends \Parsedown
|
||||
|
||||
/**
|
||||
* Overwritten to prevent # to show up as headings for two reasons:
|
||||
* - Hashes are often used to cross link issues in other systems
|
||||
* - Hashes are often used to cross-link issues in other systems
|
||||
* - Headings should not occur in time record listings
|
||||
*/
|
||||
protected $BlockTypes = [
|
||||
@@ -146,4 +146,17 @@ class ParsedownExtension extends \Parsedown
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
protected function blockTable($Line, array $Block = null)
|
||||
{
|
||||
$Block = parent::blockTable($Line, $Block);
|
||||
|
||||
if (\is_null($Block)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$Block['element']['attributes']['class'] = 'table';
|
||||
|
||||
return $Block;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user