Browse Source

Compat PHP 7.x : Constructeur __construct() + pas de continue dans un switch.

v3
marcimat@rezo.net 4 years ago
parent
commit
c5141fff2f
  1. 2
      lib/markdownify/markdownify.php
  2. 2
      lib/markdownify/markdownify_extra.php

2
lib/markdownify/markdownify.php

@ -291,7 +291,7 @@ class Markdownify {
if ($this->skipConversion) {
$this->isMarkdownable(); # update notConverted
$this->handleTagToText();
continue;
break;
}
if (!$this->parser->keepWhitespace && $this->parser->isBlockElement && $this->parser->isStartTag) {
$this->parser->html = ltrim($this->parser->html);

2
lib/markdownify/markdownify_extra.php

@ -49,7 +49,7 @@ class Markdownify_Extra extends Markdownify {
/**
* constructor, see Markdownify::__construct() for more information
*/
function Markdownify_Extra($linksAfterEachParagraph = MDFY_LINKS_EACH_PARAGRAPH, $bodyWidth = MDFY_BODYWIDTH, $keepHTML = MDFY_KEEPHTML) {
function __construct($linksAfterEachParagraph = MDFY_LINKS_EACH_PARAGRAPH, $bodyWidth = MDFY_BODYWIDTH, $keepHTML = MDFY_KEEPHTML) {
parent::__construct($linksAfterEachParagraph, $bodyWidth, $keepHTML);
### new markdownable tags & attributes

Loading…
Cancel
Save