restrict directive as 'markdown' element or attribute