This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.MarkdownToPdf.
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