@bendyline/squisq-cli 2.8.13 → 2.8.15
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/README.md +6 -0
- package/dist/index.js +3 -1
- package/dist/squisq-player.full.global.js +381 -380
- package/dist/squisq-player.global.js +72 -71
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -166,6 +166,11 @@ Diagnostics are reported at three severities — `error`, `warning`, and `info`
|
|
|
166
166
|
|
|
167
167
|
### `squisq transform <input>`
|
|
168
168
|
|
|
169
|
+
The `condense` operation compacts table padding and decorative dividers while
|
|
170
|
+
retaining table data, alignment, code, citations, and attribution. It verifies
|
|
171
|
+
structural equivalence before returning. When combining operations, put
|
|
172
|
+
`condense` after `cleanup` so serialization does not reintroduce padding.
|
|
173
|
+
|
|
169
174
|
Apply one-time markdown **source** transforms to a `.md` file, in the order given: `unwrap` (remove forced line wrapping so each paragraph is one line — hard breaks kept), `wrap` (hard-wrap paragraph prose at a column width on word boundaries — code, tables, and headings untouched), and `cleanup` (canonical house-style normalization: bullets, emphasis, headings, table padding, spacing; annotations and frontmatter preserved). Not to be confused with the `--transform <style>` slideshow-style flag on `convert`/`video` — this command rewrites the markdown text itself.
|
|
170
175
|
|
|
171
176
|
The transformed markdown goes to stdout by default (status messages go to stderr, so it pipes cleanly).
|
|
@@ -175,6 +180,7 @@ squisq transform doc.md --ops unwrap
|
|
|
175
180
|
squisq transform doc.md --ops unwrap,cleanup > cleaned.md
|
|
176
181
|
squisq transform doc.md --ops wrap --width 100 --in-place
|
|
177
182
|
squisq transform doc.md --ops cleanup -o cleaned.md
|
|
183
|
+
squisq transform doc.md --ops condense -o compact.md
|
|
178
184
|
```
|
|
179
185
|
|
|
180
186
|
| Option | Description |
|
package/dist/index.js
CHANGED
|
@@ -857,7 +857,9 @@ import {
|
|
|
857
857
|
} from "@bendyline/squisq/markdown";
|
|
858
858
|
var VALID_OPS = MARKDOWN_SOURCE_TRANSFORMS.map((t) => t.id);
|
|
859
859
|
function registerTransformCommand(program2) {
|
|
860
|
-
program2.command("transform").description(
|
|
860
|
+
program2.command("transform").description(
|
|
861
|
+
"Apply one-time markdown source transforms (unwrap, wrap, cleanup, condense) to a document"
|
|
862
|
+
).argument("<input>", "Path to a markdown (.md) file").requiredOption(
|
|
861
863
|
"--ops <list>",
|
|
862
864
|
`Comma-separated transforms, applied in order. Valid: ${VALID_OPS.join(", ")}`
|
|
863
865
|
).option(
|