Skip to content

Swift-Markdown-engine

v0.8.0 Feature

This release adds 3 notable features for engineering teams evaluating rollout.

Published 28d Editors & IDEs
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Summary

AI summary

Added highlight markup, a formatting bus with nine actions and word‑boundary auto‑wrap, and hooks for custom context menus; blockquote newline handling fixed.

Full changelog

Added

  • ==highlight== inline markup — configurable via MarkdownEditorTheme.highlightColor (default translucent orange); nested emphasis/code parsed inside.
  • Formatting busMarkdownEditorBus gains highlight + nine actions (strikethrough, inline code, blockquote, un/ordered list, link, code block, horizontal rule, image), each with a matching didMarkdown* coordinator action and word-boundary auto-wrap (wrap the word under the caret when there's no selection).
  • NativeTextViewWrapper.onBuildContextMenu — embedder hook to build the right-click menu; the engine ships none (API-only).
  • NativeTextView.isCursorExcluded — predicate that suppresses the edit-mode I-beam over an exclusion zone (e.g. a floating formatting toolbar).
  • MarkdownEditorBus.findQuery / findResults — query-based in-document find that matches the engine's displayed text (correct where it differs from source).

Changed

  • No built-in right-click "Format" menu anymore — menus are embedder-supplied via onBuildContextMenu. The system rich-text "Font" submenu is stripped from the default menu (font traits don't apply to Markdown).

Fixed

  • Blockquote removal no longer doubles trailing newlines.

Contributors

Thanks to everyone who contributed to this release:

  • @sospartan — ==highlight== markup, the formatting bus, and isCursorExcluded
  • @luca-chen198 — the embedder context-menu hook, query-based find, and maintenance

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track Swift-Markdown-engine

Get notified when new releases ship.

Sign up free

About Swift-Markdown-engine

All releases →

Related context

Earlier breaking changes

  • v0.10.0 `==highlight==` and `~~strikethrough~~` are now opt‑in extensions, not core grammar.
  • v0.7.0 Default `scrollView` content inset is now `0`; opt back in via `config.safeAreaInsets`.
  • v0.7.0 `scrollView.documentView` is now always an internal container view, never the `NSTextView`.

Beta — feedback welcome: [email protected]