Update markdown.js

Add event when element markdown is updated