pdfio/examples/md2pdf.md

85 lines
2.1 KiB
Markdown
Raw Normal View History

2024-12-11 21:37:03 +01:00
---
2024-12-21 20:04:27 +01:00
title: Markdown to PDF Converter Test File
2024-12-11 21:37:03 +01:00
...
2024-12-21 20:04:27 +01:00
Markdown to PDF Converter Test File
===================================
The `md2pdf` program is organized into three source files: `md2pdf.c` which
contains the code to format the markdown content and `mmd.h` and `mmd.c` (from
the [Miniature Markdown Library][MMD] project) which load the markdown content.
[MMD]: https://www.msweet.org/mmd/
This is a test file for `md2pdf`. Here is a bullet list:
2024-12-11 21:37:03 +01:00
2024-12-14 05:12:48 +01:00
- Embed base and TrueType fonts,
2024-12-21 20:04:27 +01:00
- Format text with embedded JPEG and PNG images and check boxes, with support
for wrapping, alignment in table cells, leader text (as used for lists), and
variable line height,
2024-12-14 05:12:48 +01:00
- Add headers and footers, and
2024-12-21 20:04:27 +01:00
- Add hyperlinks and document platform.
2024-12-11 21:37:03 +01:00
2024-12-21 20:04:27 +01:00
And here is an ordered list:
2024-12-11 21:37:03 +01:00
2024-12-21 20:04:27 +01:00
1. Embed base and TrueType fonts,
2. Format text with embedded JPEG and PNG images and check boxes, with support
for wrapping, alignment in table cells, leader text (as used for lists), and
variable line height,
3. Add headers and footers, and
4. Add hyperlinks and document platform.
2024-12-11 21:37:03 +01:00
2024-12-21 20:04:27 +01:00
Code Blocks
-----------
```
0 1 2 3 4 5 6 7 8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
```
Images
------
PDFio book cover image:
![PDFio](../doc/pdfio-epub.png)
Tables
------
Table with leading/trailing pipes:
| Heading 1 | Heading 2 | Heading 3 |
| --------- | --------- | --------- |
| Cell 1,1 | Cell 1,2 | Cell 1,3 |
| Cell 2,1 | Cell 2,2 | Cell 2,3 |
| Cell 3,1 | Cell 3,2 | Cell 3,3 |
Table without leading/trailing pipes:
Heading 1 | Heading 2 | Heading 3
--------- | --------- | ---------
Cell 1,1 | Cell 1,2 | Cell 1,3
Cell 2,1 | Cell 2,2 | Cell 2,3
Cell 3,1 | Cell 3,2 | Cell 3,3
Table with alignment:
Left Alignment | Center Alignment | Right Alignment
:-------- | :-------: | --------:
Cell 1,1 | Cell 1,2 | 1
Cell 2,1 | Cell 2,2 | 12
Cell 3,1 | Cell 3,2 | 123
2024-12-15 01:56:45 +01:00
2024-12-21 20:04:27 +01:00
Table in block quote:
2024-12-15 01:56:45 +01:00
2024-12-21 20:04:27 +01:00
> Heading 1 | Heading 2 | Heading 3
> --------- | --------- | ---------
> Cell 1,1 | Cell 1,2 | Cell 1,3
> Cell 2,1 | Cell 2,2 | Cell 2,3
> Cell 3,1 | Cell 3,2 | Cell 3,3