markdown-pdf-export 0.0.0-stage → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mat
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,93 @@
1
- # Temporary Holding Version
1
+ # Markdown PDF Export
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![npm version](https://img.shields.io/npm/v/markdown-pdf-export?color=e8231f)](https://www.npmjs.com/package/markdown-pdf-export)
4
+ [![npm downloads](https://img.shields.io/npm/dm/markdown-pdf-export)](https://www.npmjs.com/package/markdown-pdf-export)
5
+ [![CI](https://github.com/matinfo/markdown-pdf-export/actions/workflows/ci.yml/badge.svg)](https://github.com/matinfo/markdown-pdf-export/actions/workflows/ci.yml)
6
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green)](https://github.com/matinfo/markdown-pdf-export/blob/main/LICENSE)
7
+
8
+ Turn Markdown files into clean PDFs from VS Code, Zed, Cursor, Claude or any AI assistant, or from
9
+ the command line.
10
+
11
+ Full documentation: <https://matinfo.github.io/markdown-pdf-export/>
12
+
13
+ ![Studio: page style, fonts, paper, header and footer on the left, a live preview of the PDF on the right](https://raw.githubusercontent.com/matinfo/markdown-pdf-export/main/docs/public/img/studio.png)
14
+
15
+ ## Get started
16
+
17
+ You need:
18
+
19
+ - **Node.js 20 or newer** (it comes with `npx`).
20
+ - **Google Chrome or Microsoft Edge.** No Chromium browser? Run
21
+ `npx -y markdown-pdf-export install-browser` once (about 200 MB).
22
+
23
+ Then run this line in a terminal:
24
+
25
+ ```sh
26
+ npx -y markdown-pdf-export studio
27
+ ```
28
+
29
+ Studio opens in your browser. Pick a page style, fonts, paper size, header and footer, and watch the
30
+ real PDF update as you go. Click **Save**, then **Add to my editor**, and you are ready to export.
31
+
32
+ There is nothing to install first: `npx` downloads the package on first use and reuses it after.
33
+ Prefer the terminal? Run `npx -y markdown-pdf-export` with no arguments for a small menu.
34
+
35
+ More: [Get started](https://matinfo.github.io/markdown-pdf-export/start) ·
36
+ [Studio](https://matinfo.github.io/markdown-pdf-export/studio) ·
37
+ [Design online, no install](https://matinfo.github.io/markdown-pdf-export/online)
38
+
39
+ ## Export a file
40
+
41
+ | Where | How |
42
+ |---|---|
43
+ | Your editor | Run the task *Markdown: Export to PDF* on the open file |
44
+ | AI assistant | Ask: "Export this file to PDF" |
45
+ | Terminal | `npx -y markdown-pdf-export report.md` |
46
+
47
+ The PDF is saved next to the Markdown file. To add the task or the assistant tool by hand, run
48
+ `npx -y markdown-pdf-export setup`, or see
49
+ [Editors](https://matinfo.github.io/markdown-pdf-export/editors).
50
+
51
+ ## What you get
52
+
53
+ - Five page styles: Clean, Report, Academic, Compact and Technical.
54
+ - Headers and footers with the title, page numbers, the date and your logo.
55
+ - Coloured code blocks, with a choice of colour themes.
56
+ - Maths with KaTeX: `$inline$` and `$$display$$`.
57
+ - A contents list from a `[[toc]]` marker, with links to each heading.
58
+ - Settings for one document in its front matter.
59
+ - One settings file used by every editor, the assistant and the terminal.
60
+
61
+ ## Go further
62
+
63
+ - [Advanced topics](https://matinfo.github.io/markdown-pdf-export/advanced/): a one-page map of everything below.
64
+ - [Settings file](https://matinfo.github.io/markdown-pdf-export/advanced/settings-file): where it lives and how files are combined.
65
+ - [Per-document settings](https://matinfo.github.io/markdown-pdf-export/advanced/per-document): change one document with front matter.
66
+ - [Header and footer](https://matinfo.github.io/markdown-pdf-export/advanced/header-footer): zones, logos, page numbers and dates.
67
+ - [Styling](https://matinfo.github.io/markdown-pdf-export/advanced/styling): your own CSS, fonts and code colours.
68
+ - [Content](https://matinfo.github.io/markdown-pdf-export/advanced/content): maths, contents list, images and page breaks.
69
+ - [Command line](https://matinfo.github.io/markdown-pdf-export/advanced/cli): every command and option.
70
+ - [Assistant tools](https://matinfo.github.io/markdown-pdf-export/advanced/assistant-tools): the MCP server and its two tools.
71
+ - [Browser](https://matinfo.github.io/markdown-pdf-export/advanced/browser): which browser is used and how to pick another.
72
+ - [Recipes](https://matinfo.github.io/markdown-pdf-export/advanced/recipes): ready-made setups for common jobs.
73
+ - [Settings reference](https://matinfo.github.io/markdown-pdf-export/reference/settings): every setting.
74
+ - [Placeholders reference](https://matinfo.github.io/markdown-pdf-export/reference/placeholders): `{page}`, `{title}`, `{date}` and more.
75
+
76
+ ## Help
77
+
78
+ Check the browser and your settings in one step:
79
+
80
+ ```sh
81
+ npx -y markdown-pdf-export doctor
82
+ ```
83
+
84
+ You can also ask the assistant: "Run doctor_markdown_pdf". For common problems, see
85
+ [Help](https://matinfo.github.io/markdown-pdf-export/help).
86
+
87
+ ## Contributing
88
+
89
+ See [CONTRIBUTING.md](https://github.com/matinfo/markdown-pdf-export/blob/main/CONTRIBUTING.md) for development setup, tests and how the project is built.
90
+
91
+ ## Licence
92
+
93
+ MIT. See [LICENSE](https://github.com/matinfo/markdown-pdf-export/blob/main/LICENSE).