Changed Twig Link Regex which fixes #149 [Markdown Doesn't Handle [words](#)]

This commit is contained in:
Sommerregen
2015-03-08 19:24:48 +01:00
parent 217e5e5a2c
commit 06de6c8e17

View File

@@ -19,7 +19,7 @@ trait ParsedownGravTrait
protected $pages_dir;
protected $special_chars;
protected $twig_link_regex = '/\!*\[(?:.*)\]\(([{{|{%|{#].*[#}|%}|}}])\)/';
protected $twig_link_regex = '/\!*\[(?:.*)\]\((\{([\{%#])\s*(.*?)\s*(?:\2|\})\})\)/';
/**
* Initialiazation function to setup key variables needed by the MarkdownGravLinkTrait