def __init__(self, *, wrap_code=False, strip_ticks=True, indent_width=4, implicit_return=False):
"""
A converter that extracts code out of code blocks and inline code formatting.
Parameters
----------
wrap_code
Specifies whether to wrap the resulting code in a function.
strip_ticks
Specifies whether to strip the code of formatting-related backticks.
indent_width
Specifies the indent width, if wrapping.
implicit_return
Automatically adds a return statement, when wrapping code.
"""
self.wrap_code = wrap_code
self.strip_ticks = strip_ticks
self.indent_width = indent_width
self.implicit_return = implicit_return
评论列表
文章目录