fix heading visitor logic
@@ -56,11 +56,6 @@ class ValidateNoExtraSyntaxInHeadingVisitor extends AbstractVisitor {
onlyRegularTextAllowed();
}
- @Override
- public void visit(Heading heading) {
- onlyRegularTextAllowed();
- }
-
@Override
public void visit(ThematicBreak thematicBreak) {
onlyRegularTextAllowed();
