ConvertAsync
Leave feedback
On this page
Asynchronously converts the loaded document to Markdown and returns the result as a string.
public Task<ConvertResult> ConvertAsync(CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| cancellationToken | CancellationToken | A token to cancel the operation. |
- class ConvertResult
- class MarkdownConverter
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown
Asynchronously converts the loaded document to Markdown with the specified options.
public Task<ConvertResult> ConvertAsync(ConvertOptions convertOptions,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| convertOptions | ConvertOptions | Options that control the conversion. |
| cancellationToken | CancellationToken | A token to cancel the operation. |
- class ConvertResult
- class ConvertOptions
- class MarkdownConverter
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown
Asynchronously converts the loaded document and saves the result to a file. The source file read and output file write are performed asynchronously.
public Task<ConvertResult> ConvertAsync(string outputFilePath,
ConvertOptions convertOptions = null, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| outputFilePath | String | The path where the Markdown file will be written. |
| convertOptions | ConvertOptions | Options that control the conversion. Pass null for defaults. |
| cancellationToken | CancellationToken | A token to cancel the operation. |
- class ConvertResult
- 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.