From d4c3a97b2415724d04f7321f7a154b6c4144bf66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Fri, 16 Jun 2017 23:05:39 +0200 Subject: [PATCH] Rename the variable $hashtag_protection --- Michelf/MarkdownExtra.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Michelf/MarkdownExtra.php b/Michelf/MarkdownExtra.php index 3236804..06fa1ff 100644 --- a/Michelf/MarkdownExtra.php +++ b/Michelf/MarkdownExtra.php @@ -77,7 +77,7 @@ class MarkdownExtra extends \Michelf\Markdown { * Only convert atx-style headers if there's a space between the header and # * @var boolean */ - public $enforce_space_atx_style_headers = false; + public $hashtag_protection = false; /** * Parser implementation @@ -1048,7 +1048,7 @@ class MarkdownExtra extends \Michelf\Markdown { // $text = preg_replace_callback('{ ^(\#{1,6}) # $1 = string of #\'s - [ ]'.($this->enforce_space_atx_style_headers ? '+' : '*').' + [ ]'.($this->hashtag_protection ? '+' : '*').' (.+?) # $2 = Header text [ ]* \#* # optional closing #\'s (not counted)