rapier-html 1.2.5 → 1.2.6

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/BUILD.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "package": "rapier-html",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "path": "dist/rapier.html",
5
- "bytes": 4949290,
6
- "sha256": "5e2cbc912f760dd5ffad630f92dcec40151df5d55d0e6c7a2796ef907671d8bc",
7
- "builtAt": "2026-10-16T06:38:46.417Z",
5
+ "bytes": 4952859,
6
+ "sha256": "48b694df7db506a77f5a98e01098f37d54e7f9a88d6e5647ca09ea43578c3927",
7
+ "builtAt": "2026-10-16T12:09:12.607Z",
8
8
  "node": "v22.23.3",
9
9
  "canonical": true,
10
10
  "packing": "zopfli",
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Turn Markdown into one offline HTML file that contains the full Rapier editor. It opens in any browser, on a phone or
4
4
  computer, with no account. People read, edit, draw and paint; agents hand over documents, show what changed and get
5
- the edited copy back. Start with `npx rapier-html@1.2.5 notes.md`.
5
+ the edited copy back. Start with `npx rapier-html@1.2.6 notes.md`.
6
6
 
7
7
  Use it for a plan to rearrange, a guide to annotate, a draft to keep writing, or a revision to review. The file works
8
8
  without any hosted workspace.
@@ -16,14 +16,14 @@ without any hosted workspace.
16
16
  Needs Node 22 or newer.
17
17
 
18
18
  ```sh
19
- npx -- rapier-html@1.2.5 notes.md # the editor, notes.md inside it, written beside the file
20
- npx -- rapier-html@1.2.5 notes.md --view draw # opens on Draw: sketch and paint, the document behind it
21
- npx -- rapier-html@1.2.5 notes.md --view notes # opens the Notes library
22
- npx -- rapier-html@1.2.5 notes.md --drawing sketch.svg # carries a drawing, opened on Draw over the document
23
- npx -- rapier-html@1.2.5 revised.md --compare original.md # opens showing what changed
24
- npx -- rapier-html@1.2.5 notes.md --return "$RETURN_URL" --return-expires-at "$RETURN_EXPIRES_AT" # Send back
25
- npx -- rapier-html@1.2.5 notes.md out.html # a named output
26
- npm install rapier-html@1.2.5 # as a library: wrap, unwrap
19
+ npx -- rapier-html@1.2.6 notes.md # the editor, notes.md inside it, written beside the file
20
+ npx -- rapier-html@1.2.6 notes.md --view draw # opens on Draw: sketch and paint, the document behind it
21
+ npx -- rapier-html@1.2.6 notes.md --view notes # opens the Notes library
22
+ npx -- rapier-html@1.2.6 notes.md --drawing sketch.svg # carries a drawing, opened on Draw over the document
23
+ npx -- rapier-html@1.2.6 revised.md --compare original.md # opens showing what changed
24
+ npx -- rapier-html@1.2.6 notes.md --return "$RETURN_URL" --return-expires-at "$RETURN_EXPIRES_AT" # Send back
25
+ npx -- rapier-html@1.2.6 notes.md out.html # a named output
26
+ npm install rapier-html@1.2.6 # as a library: wrap, unwrap
27
27
  ```
28
28
 
29
29
  The first `--` is for npm, so `--help` reaches the command. It never overwrites a file.
@@ -108,7 +108,7 @@ objects, and `unwrap(page)` returns the checked parts beside the text. Both are
108
108
  without parts drops the old parts.
109
109
  - The published package carries its own MIT validator; no source checkout is needed.
110
110
 
111
- ## Licence
111
+ ## License
112
112
 
113
113
  AGPL-3.0-only (`LICENSE`): the page is the Rapier editor, with the notices of the libraries it carries. For the
114
114
  Markdown standard without the editor, use `rapier-markdown-kit` (MIT). Rapier is at https://rapier.website.
@@ -20,7 +20,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
22
 
23
- Files under this licence carry `SPDX-License-Identifier: MIT` in their first lines: the standard's
23
+ Files under this license carry `SPDX-License-Identifier: MIT` in their first lines: the standard's
24
24
  grammar, marks and reference style (`spec/md-layout.mjs`, `spec/md-marks.mjs`, `spec/md-source.mjs`, `spec/flowchart.mjs`, `spec/markdown-style.css`), ink geometry
25
25
  (`spec/ink.mjs`),
26
26
  the layout model and line planner (`layout/model.mjs`, `layout/line-plan.mjs`, `layout/typography.mjs`, `layout/preparation.mjs`,
@@ -42,8 +42,8 @@ AGPL-3.0-only. The page wrapper (`skills/rapier-html/wrap.mjs`, `skills/rapier-h
42
42
  `kit/pdf-vectors.mjs`, `kit/pdf-glyphs.mjs`, `kit/stage.mjs` and MIT-marked conformance
43
43
  modules are covered too. These names describe the Rapier-owned files carrying the
44
44
  MIT notice, not a grant over the editor or third-party code. Other Rapier-owned
45
- files retain their stated licence; the editor is AGPL-3.0-only (see `LICENSE`).
46
- Third-party components retain their own copyright and licence notices.
45
+ files retain their stated license; the editor is AGPL-3.0-only (see `LICENSE`).
46
+ Third-party components retain their own copyright and license notices.
47
47
 
48
48
  The portable font helpers read document definitions and accept explicit host validation and
49
49
  subsetting functions. The application binding (`editor/export-fonts.mjs`), captured-font
@@ -39,7 +39,7 @@ export function separate(c, endA = c.before.length, endB = c.after.length) {
39
39
  for (const span of p.slice(0, 2)) { span[0] += shift; span[1] += shift; }
40
40
  }
41
41
  // Adjacent blocks deleted or inserted together: when the first carries the line break before it, each carries
42
- // its own, so any one restores apart from its neighbours.
42
+ // its own, so any one restores apart from its neighbors.
43
43
  if (!raw) for (let i = 1; i < c.result.length; i++) {
44
44
  const p = c.result[i - 1], q = c.result[i], kind = p[3][0], side = kind ? 1 : 0, text = side ? after : before;
45
45
  if (kind % 2 || q[3][0] !== kind || p[2] || q[2] || p[side][1] !== q[side][0] || p[1 - side][0] !== q[1 - side][0]) continue;
@@ -109,7 +109,7 @@ export function walker(c) {
109
109
  }
110
110
 
111
111
  // Unequal lines pair in order by shared words. A line sharing under a quarter of its words with every candidate is
112
- // replaced whole: an inserted line never borrows a neighbour's words, and a rewrite never reads as stray fragments.
112
+ // replaced whole: an inserted line never borrows a neighbor's words, and a rewrite never reads as stray fragments.
113
113
  function lines(x, y, context) {
114
114
  const n = x.length - 1, m = y.length - 1;
115
115
  if (n * m > 4096 || !spend(n * m + x[n] - x[0] + y[m] - y[0])) return row(x[0], x[n], y[0], y[m], context);