re-render markdown directive on readonly change

fixes #321