@powerduck/md-editor 0.6.0 → 0.7.0
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 -0
- 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
|
@@ -247,6 +247,16 @@ npm run build # vite build + d.ts generation
|
|
|
247
247
|
|
|
248
248
|
## Changelog
|
|
249
249
|
|
|
250
|
+
### v0.6.0
|
|
251
|
+
|
|
252
|
+
- **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.
|
|
253
|
+
- **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.
|
|
254
|
+
- **Fixed**: UL/OL list styling in preview now has consistent spacing, bullet alignment, and line height.
|
|
255
|
+
- **Improved**: Removed `highlight.js/styles/atom-one-dark.css` import; syntax highlighting colors are now fully theme-aware via CSS variables.
|
|
256
|
+
- **Improved**: Removed stale `markdown-it-texmath` from vite external deps (removed in v0.4.0).
|
|
257
|
+
- **Improved**: Vitest config now excludes `__MACOSX` and AppleDouble (`._*`) files to prevent false test failures from macOS zip artifacts.
|
|
258
|
+
- **Test**: 251 tests, all passing, zero unhandled errors.
|
|
259
|
+
|
|
250
260
|
### v0.5.0
|
|
251
261
|
|
|
252
262
|
- **Fixed**: Admonition `:::` closing marker no longer leaks into rendered body content.
|