Skip to content

Commit

Permalink
Accept the :substitutions: option on code-block directives in Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
Niraj Tolia authored and stephenfin committed Jun 1, 2020
1 parent c611e46 commit 2104c60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc8/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ class CheckValidity(ContentCheck):
),
re.compile(r'^Error in "math" directive:\nunknown option: "label"'),
re.compile(r'^Error in "math" directive:\nunknown option: "nowrap"'),
re.compile(
r'^Error in \"code-block\" directive\:\nunknown option: "substitutions".',
re.MULTILINE,
),
]

def __init__(self, cfg):
Expand Down

0 comments on commit 2104c60

Please sign in to comment.