markdown2pdf 1.2.0

Create PDF with Markdown files (a md to pdf transpiler)
Documentation
---
title: markdown2pdf Feature Showcase
author: Verification Suite
subject: Full end-to-end feature coverage
keywords: markdown, pdf, math, verification
---

# Feature Showcase (H1)

This document exercises every renderer feature. Each block states the
**expected** result so the PDF can be checked by eye.

## Headings (H2)

### H3 with `inline code`

#### H4 *italic*

##### H5 **bold**

###### H6 ~~strikethrough~~

## Inline emphasis

*italic*, **bold**, ***bold italic***, `inline code`, ~~strikethrough~~,
<u>underline</u>, ==highlight==, super E=mc<sup>2</sup>, sub H<sub>2</sub>O,
<small>small text</small>, press <kbd>Ctrl</kbd>+<kbd>C</kbd>. Escaped:
\*not italic\* and \`not code\`. Entity: &copy; &amp; &alpha; &#8734;.
A hard break ends this line  
and continues here.

## Links and references

Inline [example link](https://example.com "hover tooltip"), reference
[ref link][r1], autolink <https://commonmark.org>, bare https://rust-lang.org ,
internal cross-reference [jump to Code](#code-block), and a wikilink
[[Tables]].

[r1]: https://www.rust-lang.org "Rust"

## Lists

Unordered, nested:

- Level one
  - Level two
    - Level three
- Back to one with **bold**

Ordered:

1. First
2. Second
   1. Nested 2.1
   2. Nested 2.2
3. Third

Task list:

- [x] Completed task
- [ ] Pending task
- [x] Another done

Loose list (blank lines between items):

- First loose item

- Second loose item

## Tables

| Left | Center | Right |
| :--- | :----: | ----: |
| a    | b      | c     |
| longer cell | mid | 42 |

## Blockquote

> Top-level quote with *emphasis* and `code`.
>
> > Nested quote level two.
>
> Back to level one.

## Code block

```rust
fn main() {
    let x = 41 + 1; // fenced, language = rust
    println!("{x}");
}
```

Indented code:

    plain indented code block
    second line

---

(horizontal rule above)

## Footnotes

A reference footnote[^a] and a Pandoc inline footnote^[typed in place].

[^a]: This is the footnote definition.

## Definition list

Term One
: First definition of term one.

Term Two
: Definition of term two with **bold**.

## Image

![A small blue test image](/tmp/m2p_demo_img.png "Figure 1: caption")

## Raw HTML

<div>An HTML block wrapper.</div>

<!-- this HTML comment must be invisible -->

## Math

Inline: the identity $a^2 + b^2 = c^2$, the ratio
$\varphi = \frac{1+\sqrt{5}}{2}$, and a sum $\sum_{k=1}^{n} k$.

Display:

$$\frac{-b \pm \sqrt{b^{2}-4ac}}{2a} \qquad
\int_{0}^{\infty} e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}$$

$$A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \qquad
|x| = \begin{cases} x & x \ge 0 \\ -x & x < 0 \end{cases}$$

<!-- pagebreak -->

## After a forced page break

This heading must start on a fresh page (the `<!-- pagebreak -->`
marker above forced it). End of showcase — if every section above
rendered correctly, the export is verified.