@powerduck/md-editor 0.6.0 → 0.7.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 +10 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +180 -164
- package/dist/plugins/code.d.ts +0 -1
- package/dist/plugins/mindmap.d.ts +7 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,6 @@ High-performance embeddable Markdown editor built on the markdown-it ecosystem.
|
|
|
22
22
|
- **Simple / Complex modes** -- toggle toolbar and status bar at runtime
|
|
23
23
|
- **Light / Dark themes** -- CSS custom properties, inherits host design tokens
|
|
24
24
|
- **React component** -- `forwardRef` with imperative handle
|
|
25
|
-
- **Zero Chinese** -- all code, comments, and UI strings in American English
|
|
26
25
|
|
|
27
26
|
## Installation
|
|
28
27
|
|
|
@@ -247,6 +246,16 @@ npm run build # vite build + d.ts generation
|
|
|
247
246
|
|
|
248
247
|
## Changelog
|
|
249
248
|
|
|
249
|
+
### v0.6.0
|
|
250
|
+
|
|
251
|
+
- **Fixed**: Mindmap `transform: translate(NaN,NaN) scale(NaN)` console errors (hundreds per mindmap). Root cause: `autoFit: true` computed transform on zero-size SVG before layout, and d3-zoom scheduled hundreds of animation frames each throwing "Expected number". Fix: create with `autoFit: false`, set safe default transform immediately, defer `fit()` to next animation frame with dimension guard.
|
|
252
|
+
- **Fixed**: Code block colors now sync with editor theme (light/dark). Previously hardcoded to atom-one-dark in all themes. Now uses CSS variables (`--code-bg`, `--code-fg`, `--code-keyword`, etc.) with GitHub-style light and dark palettes.
|
|
253
|
+
- **Fixed**: UL/OL list styling in preview now has consistent spacing, bullet alignment, and line height.
|
|
254
|
+
- **Improved**: Removed `highlight.js/styles/atom-one-dark.css` import; syntax highlighting colors are now fully theme-aware via CSS variables.
|
|
255
|
+
- **Improved**: Removed stale `markdown-it-texmath` from vite external deps (removed in v0.4.0).
|
|
256
|
+
- **Improved**: Vitest config now excludes `__MACOSX` and AppleDouble (`._*`) files to prevent false test failures from macOS zip artifacts.
|
|
257
|
+
- **Test**: 251 tests, all passing, zero unhandled errors.
|
|
258
|
+
|
|
250
259
|
### v0.5.0
|
|
251
260
|
|
|
252
261
|
- **Fixed**: Admonition `:::` closing marker no longer leaks into rendered body content.
|