@imontene/mdrender 1.0.0 → 1.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/CHANGELOG.md +7 -0
- package/dist/bin.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Cambios
|
|
2
2
|
|
|
3
|
+
## 1.0.1 — 2026-10-12
|
|
4
|
+
|
|
5
|
+
- Corrige un error EPIPE sin capturar cuando la salida se corta con una tubería
|
|
6
|
+
(por ejemplo `mdrender --help | head`); ahora el comando termina normalmente.
|
|
7
|
+
- El flujo de publicación se puede lanzar a mano con la versión
|
|
8
|
+
(Actions → Release → Run workflow).
|
|
9
|
+
|
|
3
10
|
## 1.0.0 — 2026-10-04
|
|
4
11
|
|
|
5
12
|
Primera versión estable.
|
package/dist/bin.js
CHANGED
|
@@ -4,6 +4,12 @@ import { defaultIo, main } from "./cli.js";
|
|
|
4
4
|
const controller = new AbortController();
|
|
5
5
|
process.once("SIGINT", () => controller.abort());
|
|
6
6
|
process.once("SIGTERM", () => controller.abort());
|
|
7
|
+
// A reader that stops early (`mdrender --help | head`) closes the pipe: drop the rest of the
|
|
8
|
+
// output instead of crashing with an unhandled EPIPE.
|
|
9
|
+
process.stdout.on("error", (error) => {
|
|
10
|
+
if (error.code !== "EPIPE")
|
|
11
|
+
throw error;
|
|
12
|
+
});
|
|
7
13
|
main(process.argv.slice(2), defaultIo, { signal: controller.signal }).then((code) => {
|
|
8
14
|
process.exitCode = code;
|
|
9
15
|
// Leftover handles (e.g. a keep-alive proxy connection after `setup`) must not keep the CLI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imontene/mdrender",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Command-line app for Windows and Linux that renders Markdown — with LaTeX equations and Mermaid diagrams — to PDF and HTML using the Inter typeface",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|