success method
success
Creates a successful result without content. Used when the output was written to a stream or file.
def success(cls):
...
Returns: ConvertResult: A result with IsSuccess set to True and Content set to None.
success
Creates a successful result containing the converted Markdown content.
def success(cls, content):
...
| Parameter | Type | Description |
|---|---|---|
| content | str |
The Markdown content produced by the conversion. |
Returns: ConvertResult: A result with IsSuccess set to True and the specified content.
See Also
- class
ConvertResult