@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 +17 -4
- package/dist/{InPlaceView-Bu91_3Ig.js → InPlaceView-CkbMemAa.js} +2 -2
- package/dist/{InPlaceView-Bu91_3Ig.js.map → InPlaceView-CkbMemAa.js.map} +1 -1
- package/dist/editor/extensions.d.ts.map +1 -1
- package/dist/editor/search-panel-dom.d.ts +27 -0
- package/dist/editor/search-panel-dom.d.ts.map +1 -0
- package/dist/editor/search-panel.d.ts +13 -0
- package/dist/editor/search-panel.d.ts.map +1 -0
- package/dist/editor/theme.d.ts.map +1 -1
- package/dist/stylo.js +2 -2
- package/dist/toolbar/commands.d.ts.map +1 -1
- package/dist/{useCodeMirror-DtwupFgc.js → useCodeMirror-CpE_Ncfn.js} +374 -238
- package/dist/useCodeMirror-CpE_Ncfn.js.map +1 -0
- package/package.json +1 -1
- package/dist/useCodeMirror-DtwupFgc.js.map +0 -1
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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-
|
|
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-
|
|
2702
|
+
//# sourceMappingURL=InPlaceView-CkbMemAa.js.map
|