Fixed the markdown implementation via subclassing