Exclude task links and user mentions from nesting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user