Remove markdown dom and styles.