@@ -243,9 +243,9 @@ def can_consume(self, line: str) -> bool:
243
243
return line .startswith ('>>>' ) or line .startswith ('...' )
244
244
245
245
def consume (self , line : str ):
246
- super ().consume (self ._stripPrompt (line ))
246
+ super ().consume (self ._strip_prompt (line ))
247
247
248
- def _stripPrompt (self , line : str ) -> str :
248
+ def _strip_prompt (self , line : str ) -> str :
249
249
start = 4 if line .startswith ('>>> ' ) or line .startswith ('... ' ) else 3
250
250
return line [start :]
251
251
@@ -308,15 +308,15 @@ def initiate_parsing(self, line: str, current_language: str) -> IBlockBeginning:
308
308
309
309
def rst_to_markdown (text : str ):
310
310
"""
311
- Try to parse docstrs in following formats to markdown:
312
- - https://www.python.org/dev/peps/pep-0287/
313
- - https://www.python.org/dev/peps/pep-0257/
314
- - https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html
311
+ Try to parse docstrings in following formats to markdown:
312
+ - https://www.python.org/dev/peps/pep-0287/
313
+ - https://www.python.org/dev/peps/pep-0257/
314
+ - https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html
315
315
316
- It is intended to improve the UX while better the solutions at the backend
317
- are being investigated rather than provide a fully-featured implementation.
316
+ It is intended to improve the UX while better the solutions at the backend
317
+ are being investigated rather than provide a fully-featured implementation.
318
318
319
- Supported features:
319
+ Supported features:
320
320
- code blocks:
321
321
- PEP0257 (formatting of code with highlighting, formatting of output without highlighting)
322
322
- after ::
@@ -326,8 +326,9 @@ def rst_to_markdown(text: str):
326
326
- external links (inline only)
327
327
- as subset of paragraph-level and inline directives (which must fit into a single line)
328
328
329
- @param text - the input docstring
330
- """
329
+ Arguments:
330
+ text - the input docstring
331
+ """
331
332
language = 'python'
332
333
markdown = ''
333
334
active_parser : Union [IParser , None ] = None
0 commit comments