From 48f1ed6e5b1d11cb2a7986fc5c39dee71b96d12b Mon Sep 17 00:00:00 2001 From: Matthias Breddin Date: Fri, 8 Jan 2016 04:20:19 +0100 Subject: [PATCH] Pull in changes from \Michelf\MarkdownExtra This line is missing in the the overwritten doAnchors() method, preventing using extra id / class attributes [text](link)(#id .class) --- Parser/MarkdownParser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Parser/MarkdownParser.php b/Parser/MarkdownParser.php index e24d262..df369b3 100644 --- a/Parser/MarkdownParser.php +++ b/Parser/MarkdownParser.php @@ -216,6 +216,7 @@ class MarkdownParser extends MarkdownExtra implements MarkdownParserInterface [ \n]* # ignore any spaces/tabs between closing quote and ) )? # title is optional \) + (?:[ ]? '.$this->id_class_attr_catch_re.' )? # $8 = id/class attributes ) }xs', array(&$this, '_doAnchors_inline_callback'), $text);