Commit Graph
5 Commits
Author SHA1 Message Date
thzxx f080dcd1ff fix(site): add white-space:pre-wrap to code block for proper line formatting
Root cause: .code-block was missing white-space:pre-wrap, causing all
newlines and indentation to collapse into a single line in the browser.
Also collapse open/close tags to avoid leading/trailing blank lines.
2026-07-23 20:16:56 +08:00
thzxx 86beddf63d fix(site): format code block syntax highlighting and clarify logo mark
- Add .c-punc CSS class for punctuation coloring in code blocks
- Wrap all angle brackets, operators and delimiters in c-punc spans
- Add title/aria-label to logo-mark for accessibility and clarity
- Fix CDN path in code sample to match actual usage (../dist/...)
- Fix indentation consistency
2026-07-23 20:13:10 +08:00
thzxx 9e0c1d7a7f release: v0.1.1 — bug fixes, CSS scoping, parser improvements
Bug Fixes:
- fix(core): insert() replace param was non-functional due to identical ternary branches
- fix(types): correct project URL typo (MetonaToast → MetonaEditor)

Improvements:
- feat(core): scope CSS theme variables to .me-wrapper per-instance, preventing global style pollution
- feat(themes): add optional target parameter to setThemeVariables() for element-scoped theming
- perf(parser): improve bold/strikethrough regex to support inline delimiter chars (e.g. **a*b**, ~~a~b~~)
- fix(parser): prevent *** cross-tag nesting by requiring first content char ≠ delimiter
- docs(animations): clarify module purpose as future-use animation metadata registry

Tests:
- test(core): add 2 cases for insert() replace:true / replace:false behavior
- All 409 tests passing (+2 new)

Chores:
- bump version 0.1.0 → 0.1.1 across all source files, package.json, README, and demo
2026-07-23 20:02:04 +08:00
thzxx 83357c3f22 docs: update npm package link to Gitea packages page 2026-07-23 18:04:31 +08:00
thzxx 22e867eda8 Initial commit: MetonaEditor v0.1.0 2026-07-23 16:23:07 +08:00