Base Docstring Processor
Base class for all docstring processors:
Links
handsdown.processors.pep257.PEP257DocstringProcessor
handsdown.processors.rst.RSTDocstringProcessor
handsdown.processors.smart.SmartDocstringProcessor
Supported features
<triple_backticks><?language>
starts a new Markdown-style code block, ended with triple backticks<line>::
starts a new Markdown-style Python code block, ended with unindent<triple_tildes><?language>
starts a new Markdown-style block, ends with<triple_tildes>
>>>
starts a new Markdown-style Python block, ended with unindent or line not starting with>>>
or...
Handsdown API Index / Handsdown / Processors / Base Docstring Processor
Auto-generated documentation for handsdown.processors.base module.
BaseDocstringProcessor
Base docstring processor. All docstring processors are based on top of it.
Attributes
line_re_map
- Mapping of line regexp to format string for itsection_name_map
- Mapping of Section search key to Section titlereplace_map
- Mapping of string to replace to replacer
Signature
BaseDocstringProcessor().build_sections
Parse docstring and split it to sections with arrays of strings.
Arguments
content
- Object docstring.
Returns
A dictionary where key is a section name and value is a list of string sof this section.