@particle-academy/react-fancy 5.60.0 → 5.60.2

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 CHANGED
@@ -11,6 +11,62 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [5.60.2] - 2026-10-26
15
+
16
+ ### Fixed
17
+
18
+ - **`Editor` markdown output is now source-preserving: an edit in one place
19
+ leaves the rest of the document byte-identical.** Requested by a consumer
20
+ (MOIC) whose agents write markdown notes that people then edit by hand.
21
+ When the Editor loads markdown (`outputFormat="markdown"`), it remembers the
22
+ original text of every top-level block. On save, any block the person did
23
+ not change is written back exactly as it was. Only the changed blocks are
24
+ rebuilt. Concretely:
25
+ - **Tables keep their structure.** Before, saving turned any table into
26
+ loose text. An untouched table now comes back verbatim. Editing a cell
27
+ rewrites only that row as a GFM row (`|` escaped) and keeps the original
28
+ alignment row while the column count is unchanged. A table with no source,
29
+ such as one pasted in, is written as a GFM table.
30
+ - **The trailing newline is kept**, along with the exact blank lines between
31
+ blocks, leading blank lines, link reference definitions and HTML comments.
32
+ - **Original spellings survive on untouched blocks**: `*`/`+` bullets,
33
+ `_em_`, `__strong__`, backslash escapes, setext headings, `1)` lists,
34
+ closing `#`s, `***` rules and HTML blocks.
35
+ - **Lists are kept item by item.** Adding or editing one item leaves the
36
+ other items, and the blank lines between them, as they were. A new item
37
+ uses the list's own marker (`*`, `+`, `-`, or the next number with the same
38
+ `.`/`)`) and the separator used before it. Pressing Enter at the end of the
39
+ last item of a partly-loose list now adds only that item. In 5.60.1 it put
40
+ a blank line between every item and dropped the final newline.
41
+
42
+ **Nothing to do:** upgrade, and saving stops rewriting text nobody touched.
43
+ Inside an edited block the old serialiser still runs, so an edited paragraph
44
+ can come back with `_em_` spelled as `*em*`. Documents with `\r\n` line
45
+ endings, and HTML values, use the old serialiser for the whole document.
46
+ An item inserted in the middle of an ordered list takes the next number
47
+ after the one above it and later items keep theirs (`2)` twice), which
48
+ renders correctly because markdown numbers from the first item.
49
+
50
+ ## [5.60.1] - 2026-10-26
51
+
52
+ ### Fixed
53
+
54
+ - **`Editor` with `outputFormat="markdown"` no longer rewrites parts of the
55
+ document nobody touched.** Reported by a consumer (MOIC): pressing Enter at
56
+ the end of the last item of a tight list and typing emitted a blank line
57
+ after the FIRST item, turning the whole list loose in most renderers. The
58
+ cause was wider than lists: markdown output was produced by rewriting the
59
+ HTML string, so the newlines between tags became content — every tight list
60
+ came back loose, nested and ordered lists were flattened to `-` items, and
61
+ fenced code blocks lost their fences. The markdown is now serialised from
62
+ the DOM, and a document opened in the Editor and edited in one place comes
63
+ back byte-identical everywhere else. Loose lists stay loose; tight lists
64
+ stay tight; nested lists, ordered lists (including their start number),
65
+ fenced code blocks with their language, blockquotes, headings, emphasis and
66
+ links round-trip. **Nothing to do:** upgrade and the emitted markdown stops
67
+ drifting. Spellings markdown allows several ways are written in one form
68
+ (`-` bullets, `*em*`, `**strong**`, `---` rules).
69
+
14
70
  ## [5.60.0] - 2026-10-23
15
71
 
16
72
  ### Added