Changed rules from HTML to markdown