Repository navigation
Releases
Writemark v1.9.0
- Enhance native textareas with
data-writemark. Keep the submitted form field, labels, tab order, and reset behavior. - Use
revisionandapplyTransaction()to reject stale edits. Read edit origins frommd-inputandmd-change. - Show named remote cursors with
setRemoteCursors()andupdateRemoteCursors(). Reuse visible ranges during large cursor updates. - Preserve literal text in pasted table cells. Keep parent text after nested lists during HTML paste.
- Try the textarea, transaction, and cursor examples in the public demo.
Writemark 1.8.1
- Fixed trailing spaces and cursor positions in live table cells.
- Fixed Backspace so it removes cell spaces before the final letter.
- Kept spaces when users edit other cells or change editor modes.
- Kept a table row while Backspace removes spaces from an otherwise empty cell.
- Added tests for cell spaces, source offsets, and unchanged preview output.
- Converted the editor source to strict TypeScript.
- Added checks that reject explicit or inferred
anytypes and type suppressions. - Kept the standalone browser files and public entry paths.
- Added a change completion skill and checks that require release metadata for editor changes.
- Required release notes for the current version.
- Added an early check for the pinned Node.js runtime before builds and source checks.
- Regenerated the manifest with Node.js 24.19.0.
Writemark 1.8.0
Copy writemark-editor.global.min.js beside your HTML page. The file includes the editor and styles. The browser needs no other editor file.
- Added a standalone minified browser file with embedded styles.
- Split source into parser, renderer, action, browser, and core modules.
- Added generated TypeScript declarations for the public API and global script.
- Added copied-file offline tests and package type checks.
- Added automatic distribution generation before a pull request merges.
- Kept byte checks for generated files and preserved the existing entry paths.
Writemark 1.7.1
Writemark 1.7.1 fixes the 15 known issues in 1.7.0.
Changes
- Moved the demo tag switch beside a new Shift+Enter behavior control.
- Fixed Unicode source offsets in case-insensitive find and replace.
- Fixed virtual scroll positions for blocks with several rendered lines.
- Kept reference definitions inside code fences and active paragraphs as text.
- Gave explicit Markdown clipboard data priority over tab-separated text.
- Escaped literal Markdown syntax in HTML paste and kept code blank lines.
- Used safe code span and fence markers around selected backticks.
- Escaped link and image fields and rejected multiline code language input.
- Kept tilde fence markers when the code language changes.
- Made heading IDs unique when heading text contains numeric suffixes.
- Parsed apostrophes inside link destinations as URL text.
- Parsed fenced code before GFM table candidates.
- Decoded entities in plain text and kept blank lines inside code.
- Matched active marks to parsed code, emphasis, links, and escapes.
- Removed repeated scans of unmatched opening brackets during copy.
- Limited grapheme checks to text near the deletion caret.
- Kept literal private-use marker text during live and preview rendering.
Writemark 1.7.0
Writemark 1.7.0 adds an opt-in Shift+Enter behavior.
- Add the
shift-enter-behaviorattribute andshiftEnterBehaviorproperty. - Keep the current Markdown hard break as the default.
- Use
smart-enterto apply Enter rules to Shift+Enter in lists, blockquotes, code fences, and tables. - Correct live caret offsets when list markers contain extra spaces.
- Add browser tests and update the keyboard guides and API reference.
The full pull request checks passed on Linux and macOS WebKit. See the changelog.
Writemark 1.6.1
This release adds opt-in Markdown tags, host catalog completion, and completion popover fixes since version 1.5.2.
- Add Unicode and nested tags,
getTags(),parseTags(), and tag activation events. - Keep tag rendering, indexing, completion, and catalog requests off until the host enables tags.
- Preserve Markdown, selection, form values, dirty state, and undo history when the tag setting changes.
- Keep completion popovers inside the editor and accept valid tag completions during fast input.
- Use "Add #tag to catalog" to distinguish document tags from host catalog entries.
- Update the demo, GIF capture, API reference, generated bundles, and browser tests.
- Check mouse input and keyboard focus separately for the demo tag switch on Safari.
To enable tags, add the boolean attribute:
<writemark-editor tags-enabled></writemark-editor>For JavaScript integrations, set editor.tagsEnabled = true. Assigning tagProvider alone does not enable tags.
The host controls whether a catalog choice becomes a saved catalog entry. The allowCreate option and tag-create event kind remain available.
This release documents 15 known issues that remain open.
Writemark 1.5.2
Fixed
- Completion menus now stay inside the visual viewport.
- Menus prefer the area below the caret and move above when needed.
- Open menus update after scrolling, resizing, and mobile viewport changes.
Tests
- Added geometry tests for placement, narrow viewports, active options, resizing, and cleanup.
v1.5.1
- Fixed repeated typing in desktop Safari by applying trusted text insertion to
canonical source transactions, preventing stale native carets from reversing
characters or inserting into the wrong rendered row, table cell, or fence. - Fixed macOS Command+Arrow line-boundary handling when Safari contracts run on
a non-macOS CI host. - Kept unfinished backtick and tilde fences source-editable while language
completion is open, so later headings, tables, paragraphs, and code blocks
cannot be swallowed before the closing fence is inserted. - Removed disabled editor hosts from Safari's sequential tab order and restored
any prior host tabindex when the editor is enabled again. - Preserved canonical IME caret offsets across decorated inline Markdown and
escaped table-cell content. - Hardened the Playwright mobile-WebKit contract for opaque native selection
endpoints while keeping desktop Safari and iOS behavior independently tested. - Added a macOS WebKit CI gate and capability-based cross-block selection
coverage, scoped desktop-Safari contracts to real WebKit selection and
physical keyboard behavior, and removed mobile skip reporting.
v1.3.1
Markdown security hardening
- Added a reviewed hostile-input corpus and strict rendered/live DOM audits.
- Added seeded, shrinkable parser and sanitizer property tests with exact replay controls.
- Added semantic differential coverage against a pinned CommonMark reference renderer.
- Added a weekly rotating-seed deep-fuzz workflow.
- Fixed CommonMark loose-list rendering for list items separated by a blank line.
Verification
- 317 directly reported Playwright cases per browser project.
- Chromium, Firefox, and WebKit GitHub gate passed on the release commit.
- 15,000 generated cases passed in the deep fuzz run.
- Package dry run: 12 files, 128.8 kB.