ToMarkdownAsync
Leave feedback
On this page
Asynchronously converts the document at the specified path to Markdown. File reading is performed asynchronously.
public static Task<string> ToMarkdownAsync(string sourcePath,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| sourcePath | String | The path to the source document. |
| cancellationToken | CancellationToken | A token to cancel the operation. |
The converted Markdown content.
| exception | condition |
|---|---|
| GroupDocsMarkdownException | Thrown when conversion fails. |
- class MarkdownConverter
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown
Asynchronously converts the document at the specified path to Markdown. File reading is performed asynchronously; conversion runs on the thread pool.
public static Task<string> ToMarkdownAsync(string sourcePath, LoadOptions loadOptions,
ConvertOptions convertOptions = null, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| sourcePath | String | The path to the source document. |
| loadOptions | LoadOptions | Options for loading the document. May be null. |
| convertOptions | ConvertOptions | Options for the conversion. May be null. |
| cancellationToken | CancellationToken | A token to cancel the operation. |
The converted Markdown content.
| exception | condition |
|---|---|
| GroupDocsMarkdownException | Thrown when conversion fails. |
- class LoadOptions
- class ConvertOptions
- class MarkdownConverter
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.