We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e7d6a commit 437e114Copy full SHA for 437e114
docstring_to_markdown/rst.py
@@ -339,7 +339,7 @@ def looks_like_rst(value: str) -> bool:
339
if (section + '\n' + '-' * len(section) + '\n') in value:
340
return True
341
for directive in RST_DIRECTIVES:
342
- if re.search(directive.pattern, value):
+ if re.search(directive.pattern, value, directive.flags):
343
344
# allow "text::" or "text ::" but not "^::$" or "^:::$"
345
return bool(re.search(r'(\s|\w)::\n', value) or '\n>>> ' in value)
0 commit comments