memd-cli 2.0.0 → 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/main.js +5 -0
- package/package.json +1 -1
- package/highlight-plan.md +0 -710
- package/poc-html.mjs +0 -134
- package/poc-output.html +0 -460
- package/svgplan.md +0 -805
package/main.js
CHANGED
|
@@ -347,6 +347,11 @@ function spawnPager(text, options) {
|
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
|
|
350
|
+
// Ignore EPIPE on stdin - expected when user quits pager before all content is consumed
|
|
351
|
+
pager.stdin.on('error', (err) => {
|
|
352
|
+
if (err.code !== 'EPIPE') throw err;
|
|
353
|
+
});
|
|
354
|
+
|
|
350
355
|
pager.stdin.write(text);
|
|
351
356
|
pager.stdin.end();
|
|
352
357
|
|