mirror of
https://github.com/getgrav/grav.git
synced 2026-07-11 16:12:03 +02:00
Changed Twig Link Regex which fixes #149 [Markdown Doesn't Handle [words](#)]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user