Skip to content

Commit

Permalink
Merge branch 'master-2.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Mar 30, 2018
2 parents e2547ba + baaf32a commit f605a52
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -8,7 +8,7 @@
"vboctor/disposable_email_checker": "^3.0",
"adodb/adodb-php": "^5.20",
"phpmailer/phpmailer": "^5.2.22",
"erusev/parsedown": "^1.6",
"erusev/parsedown": "^1.7.0",
"dapphp/securimage": "dev-mantis"
},
"require-dev": {
Expand Down
16 changes: 10 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions plugins/MantisCoreFormatting/core/MantisMarkdown.php
Expand Up @@ -60,12 +60,15 @@ class MantisMarkdown extends Parsedown
* MantisMarkdown constructor.
*/
public function __construct() {

# enable line break by default
$this->breaksEnabled = true;

# set the table class
$this->table_class = 'table table-nonfluid';

# XSS protection
$this->setSafeMode( true );
}

/**
Expand All @@ -77,7 +80,7 @@ public static function convert_text( $p_text ) {
self::init();

# Enabled quote conversion
# Text processing converts special character to entity name
# Text processing converts special character to entity name
# Make sure to restore ">" entity name to its characted result ">"
$p_text = str_replace( ">", ">", $p_text );

Expand Down Expand Up @@ -205,7 +208,7 @@ protected function blockQuoteContinue( $line, array $block ){
protected function inlineCode( $block ) {

$block = parent::inlineCode( $block );

if( isset( $block['element']['text'] )) {
$this->processAmpersand( $block['element']['text'] );
}
Expand All @@ -230,7 +233,7 @@ protected function blockFencedCodeComplete( $block = null ) {

return $block;
}

/**
* Customize the blockCodeComplete method
*
Expand Down

0 comments on commit f605a52

Please sign in to comment.