diff --git a/doc8/checks.py b/doc8/checks.py index 224a181..6f4734d 100644 --- a/doc8/checks.py +++ b/doc8/checks.py @@ -193,6 +193,8 @@ class CheckMaxLineLength(ContentCheck): ) title_types = ( docutils_nodes.title, + docutils_nodes.subtitle, + docutils_nodes.section, ) max_line_length = self._cfg['max_line_length'] allow_long_titles = self._cfg['allow_long_titles']