@damiro/stylo 0.9.0 → 0.10.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/README.md CHANGED
@@ -89,10 +89,23 @@ customizer) additionally needs `@dnd-kit/core @dnd-kit/sortable
89
89
 
90
90
  ## Why
91
91
 
92
- Most React "Markdown editors" are either a bare `<textarea>` with a preview pane,
93
- or a full ProseMirror/Lexical rich-text stack that turns your document into an
94
- in-memory model you must serialize back to Markdown — lossy for frontmatter,
95
- wikilinks, and math, and hostile to files other tools also edit.
92
+ Round-trip fidelity — plain Markdown in, the same plain Markdown out — rules out
93
+ most of the field before features even enter it:
94
+
95
+ - **TipTap, Milkdown, BlockNote** (all ProseMirror) and **Lexical** keep their
96
+ own document tree as the source of truth and serialize to Markdown on save —
97
+ exactly where frontmatter, `[[wikilinks]]` (not standard Markdown; needs a
98
+ custom node type), and math risk silently mangling on a round-trip.
99
+ **Toast UI Editor** is the same shape under different branding, and
100
+ considerably less themeable.
101
+ - **EasyMDE / SimpleMDE** get the one axis that matters most right — genuinely
102
+ canonical Markdown in and out — but on CodeMirror 5, with no in-place live
103
+ rendering (raw source or a separate preview pane, not an Obsidian-style
104
+ live-preview feel), no wikilinks, no embeds, no frontmatter handling.
105
+ Adopting one means rebuilding most of what Stylo already does.
106
+ - **Raw CodeMirror 6, no wrapper** is what's left after ruling those out — and
107
+ building the decoration canvas, the wikilink/embed/frontmatter layer, and a
108
+ theming contract from scratch is the reinvention Stylo exists to avoid.
96
109
 
97
110
  Stylo takes the Obsidian stance instead: **the Markdown string is the source of
98
111
  truth.** The editor is a thin, composable surface over it.
@@ -1,5 +1,5 @@
1
1
  import { i as e, r as t, t as n } from "./frontmatter-DGUkb9z-.js";
2
- import { _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as ee, s as te, t as ne, u as re, v as ie, x as _, y as ae } from "./useCodeMirror-DtwupFgc.js";
2
+ import { _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as ee, s as te, t as ne, u as re, v as ie, x as _, y as ae } from "./useCodeMirror-CpE_Ncfn.js";
3
3
  import { a as oe, i as v } from "./config-DTBxVhtH.js";
4
4
  import { a as se, n as ce, o as le, r as ue, t as y } from "./embed-B2Dfkpd_.js";
5
5
  import { t as de } from "./katex-BfiLlqfN.js";
@@ -2699,4 +2699,4 @@ function fr({ value: t, onChange: n, readOnly: r, placeholder: i, onWikiLinkClic
2699
2699
  //#endregion
2700
2700
  export { fr as InPlaceView };
2701
2701
 
2702
- //# sourceMappingURL=InPlaceView-Bu91_3Ig.js.map
2702
+ //# sourceMappingURL=InPlaceView-CkbMemAa.js.map