Skip to content
Permalink
Browse files

Fix markdown with Indented-code-block

Fixes #22545

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information...
jllano authored and dregad committed Mar 25, 2017
1 parent 4a06c6e commit ca40d68e078915bee15935aa2c98ce3ed415d30b
Showing with 18 additions and 0 deletions.
  1. +18 −0 plugins/MantisCoreFormatting/core/MantisMarkdown.php
@@ -264,6 +264,24 @@ protected function blockFencedCodeComplete( $block = null ) {
return $block;
}
/**
* Customize the blockCodeComplete method
*
* @param array $block A block-level element
* @access protected
* @return string html representation generated from markdown.
*/
protected function blockCodeComplete( $block ) {
$block = parent::blockCodeComplete( $block );
if( isset( $block['element']['text']['text'] )) {
$this->processAmpersand( $block['element']['text']['text'] );
}
return $block;
}
/**
* Customize the inlineLink method
*

0 comments on commit ca40d68

Please sign in to comment.
You can’t perform that action at this time.