Refactor ATX headings (dart-lang/markdown#486) * Refactor ATX headings * Update a comment * A small fix * Update stats