Closed
Description
A simple example to reproduce:
>>> text = """
... Spam.
...
... :param eggs: bacon.
... "
>>> import docstring_to_markdown
>>> docstring_to_markdown.looks_like_rst(text)
False
The reason is that the regex search in docstring_to_markdown.looks_like_rst()
does not use the eventual flags from the directive. In the above example, the responsible directive has the multiline flag set:
docstring-to-markdown/docstring_to_markdown/rst.py
Lines 131 to 135 in cceaeab
but the function never uses it:
docstring-to-markdown/docstring_to_markdown/rst.py
Lines 341 to 342 in cceaeab
Metadata
Metadata
Assignees
Labels
No labels