diff options
Diffstat (limited to 'app/Core/Markdown.php')
-rw-r--r-- | app/Core/Markdown.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Core/Markdown.php b/app/Core/Markdown.php index b8fe618f..ae6adb5e 100644 --- a/app/Core/Markdown.php +++ b/app/Core/Markdown.php @@ -145,4 +145,17 @@ class Markdown extends Parsedown array('task_id' => $task_id) ); } + + /** + * Exclude from nesting task links and user mentions for links + * + * @param array $Excerpt + * @return array|null + */ + protected function inlineLink($Excerpt) + { + $Inline = parent::inlineLink($Excerpt); + array_push($Inline['element']['nonNestables'], 'TaskLink', 'UserLink'); + return $Inline; + } } |