ConvertAsync

ConvertAsync(CancellationToken)

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.

See Also


ConvertAsync(ConvertOptions, CancellationToken)

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.

See Also


ConvertAsync(string, ConvertOptions, CancellationToken)

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.

See Also