MarkdownToPdfAliases.

MarkdownFileToPdf(ICakeContext, FilePath, FilePath, Action<Settings>) Method

Summary

Converts a markdown file to pdf file.

Syntax

public static void MarkdownFileToPdf(this ICakeContext context, FilePath markdownFile, FilePath outputFile, Action<Settings> settingsAction = null)

Examples

Task("Convert")
  .Does(() => {        
    MarkdownFileToPdf("readme.md", "output.pdf");
    
    // or with settings
     MarkdownFileToPdf("readme.md", "output.pdf", settings => {
        settings.Theme = Themes.Github
        settings.UseAdvancedMarkdownTables();
     });
});

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The ICakeContext.
markdownFile FilePath The markdown file to convert.
outputFile FilePath The name of the pdf file to create.
settingsAction Action<Settings> Settings used for convertion

Return Value

Type Description
void