public void TestMethod()
        {
            ICakeContext context = Substitute.For <ICakeContext>();

            var text = @"## Welcome to MarkdownPad 2 ##

**MarkdownPad** is a full-featured Markdown editor for Windows.

### Built exclusively for Markdown ###

Enjoy first-class Markdown support with easy access to  Markdown syntax and convenient keyboard shortcuts.

Give them a try:

- **Bold** (`Ctrl+B`) and *Italic* (`Ctrl+I`)
- Quotes (`Ctrl+Q`)
- Code blocks (`Ctrl+K`)
- Headings 1, 2, 3 (`Ctrl+1`, `Ctrl+2`, `Ctrl+3`)
- Lists (`Ctrl+U` and `Ctrl+Shift+O`)

### See your changes instantly with LivePreview ###

Don't guess if your [hyperlink syntax](http://markdownpad.com) is correct; LivePreview will show you exactly what your document looks like every time you press a key.

### Make it your own ###

Fonts, color schemes, layouts and stylesheets are all 100% customizable so you can turn MarkdownPad into your perfect editor.

### A robust editor for advanced Markdown users ###

MarkdownPad supports multiple Markdown processing engines, including standard Markdown, Markdown Extra (with Table support) and GitHub Flavored Markdown.

With a tabbed document interface, PDF export, a built-in image uploader, session management, spell check, auto-save, syntax highlighting and a built-in CSS management interface, there's no limit to what you can do with MarkdownPad.

# This is Heading 1
## This is Heading 2
### This is Heading 3
#### This is Heading 4
##### This is Heading 5

`this is code`

```
this is another code
over more lines
```

[this is a link]()

> **Note**
>
> Diese Version des Templates enthält Hilfen und Erläuterungen. Sie
> dient der Einarbeitung in arc42 sowie dem Verständnis der Konzepte.
> Für die Dokumentation eigener System verwenden Sie besser die *plain*
> Version.

";

            MarkdownToPdfAliases.MarkdownToPdf(context, text, "tst.pdf");
        }
Esempio n. 2
0
        public void ConvertFile()
        {
            ICakeContext context = Substitute.For <ICakeContext>();

            MarkdownToPdfAliases.MarkdownFileToPdf(context, "Assets/Test.md", "Testoutput.pdf", settings =>
            {
                settings.UseAdvancedMarkdownTables();
                settings.Theme = Themes.Github;
            });
        }
Esempio n. 3
0
        public void OutputImages()
        {
            ICakeContext context = Substitute.For <ICakeContext>();

            MarkdownToPdfAliases.MarkdownFileToPdf(context, "Assets/TestImage.md", "TestImage.pdf");
        }