diff --git a/.changeset/add-modal-for-room-details.md b/.changeset/add-modal-for-room-details.md index d846d5533..259c8d516 100644 --- a/.changeset/add-modal-for-room-details.md +++ b/.changeset/add-modal-for-room-details.md @@ -2,4 +2,4 @@ default: patch --- -Added a modal for viewing room details on mobile. +Added a modal for viewing room details on smaller screens. diff --git a/.changeset/adopt-getMouseEventCords.md b/.changeset/adopt-getMouseEventCords.md deleted file mode 100644 index c1a4bcbc3..000000000 --- a/.changeset/adopt-getMouseEventCords.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Adopt the existing getMouseEventCords helper at the two remaining hand-rolled coordinate literals. diff --git a/.changeset/android-media-upload.md b/.changeset/android-media-upload.md deleted file mode 100644 index 78bf9c7d7..000000000 --- a/.changeset/android-media-upload.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Improve Android media uploads with streaming progress tracking and automatic temp file cleanup. diff --git a/.changeset/collapse-timeline-renderer-duplication.md b/.changeset/collapse-timeline-renderer-duplication.md deleted file mode 100644 index 53b09f63e..000000000 --- a/.changeset/collapse-timeline-renderer-duplication.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Collapse the duplicated preamble, reactions bar, and thread-chip blocks in the timeline event renderer into shared helpers. diff --git a/.changeset/desktop-device-display-name.md b/.changeset/desktop-device-display-name.md deleted file mode 100644 index 239281d6b..000000000 --- a/.changeset/desktop-device-display-name.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Settings device name now clearly shows your device type — e.g. "Sable Desktop on Windows", "Sable Mobile on Android", or "Sable Web on Firefox for macOS" diff --git a/.changeset/desktop-shortcuts.md b/.changeset/desktop-shortcuts.md deleted file mode 100644 index e041a58d4..000000000 --- a/.changeset/desktop-shortcuts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -Add desktop keyboard shortcuts to open settings, toggle window visibility, and quit. diff --git a/.changeset/desktop-update-pill.md b/.changeset/desktop-update-pill.md deleted file mode 100644 index 5b9472cc4..000000000 --- a/.changeset/desktop-update-pill.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -Desktop app now periodically checks for updates, shows an update pill in the titlebar when one is available, and lets you manually check for updates in Settings > About. diff --git a/.changeset/desktop-window-chrome.md b/.changeset/desktop-window-chrome.md deleted file mode 100644 index 33366b3fc..000000000 --- a/.changeset/desktop-window-chrome.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -Improve desktop window layout with seamless macOS titlebars and custom Linux controls. diff --git a/.changeset/device-display-name.md b/.changeset/device-display-name.md index 57c6b7230..0e2c3c14f 100644 --- a/.changeset/device-display-name.md +++ b/.changeset/device-display-name.md @@ -2,4 +2,4 @@ default: minor --- -# Update device display name post-login to reflect the current platform and flavor (e.g. "Sable Desktop (Nightly) on Windows"). +# Update the device display name after login to reflect the current client and build flavor. diff --git a/.changeset/export-mobile-diagnostics.md b/.changeset/export-mobile-diagnostics.md deleted file mode 100644 index 981abf357..000000000 --- a/.changeset/export-mobile-diagnostics.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -Export diagnostics from mobile settings, bundling redacted logs and system info into a shareable archive. diff --git a/.changeset/extract-buildReplacementContent.md b/.changeset/extract-buildReplacementContent.md deleted file mode 100644 index 79ee19aae..000000000 --- a/.changeset/extract-buildReplacementContent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Extract buildReplacementContent so message edits assemble the replacement the same way in the composer and the editor. diff --git a/.changeset/fix-android-back-dismiss-overlays.md b/.changeset/fix-android-back-dismiss-overlays.md deleted file mode 100644 index 0c93994ba..000000000 --- a/.changeset/fix-android-back-dismiss-overlays.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Dismiss overlays on Android system back instead of navigating away. diff --git a/.changeset/fix-android-media-loading-stall.md b/.changeset/fix-android-media-loading-stall.md deleted file mode 100644 index a3c83be9d..000000000 --- a/.changeset/fix-android-media-loading-stall.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Fix media loading stalling on Android when browsing history. diff --git a/.changeset/fix-android-room-context-menu.md b/.changeset/fix-android-room-context-menu.md deleted file mode 100644 index 5a962d42e..000000000 --- a/.changeset/fix-android-room-context-menu.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Activate room context menu items on pointerup on Android to work around WebView click synthesis being suppressed after the long-press gesture that opens the mobile menu. diff --git a/.changeset/fix-autocomplete-focus-mobile.md b/.changeset/fix-autocomplete-focus-mobile.md index 5ecca245d..5ef964aa5 100644 --- a/.changeset/fix-autocomplete-focus-mobile.md +++ b/.changeset/fix-autocomplete-focus-mobile.md @@ -2,4 +2,4 @@ default: patch --- -Keep message input focused after selecting autocomplete suggestions on mobile. +Keep the message input focused after selecting autocomplete suggestions. diff --git a/.changeset/fix-double-tap.md b/.changeset/fix-double-tap.md deleted file mode 100644 index 06f3e1a51..000000000 --- a/.changeset/fix-double-tap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Fixed needs to double tap a room on android diff --git a/.changeset/fix-encrypted-media-content-type.md b/.changeset/fix-encrypted-media-content-type.md index b0c000177..f309cbbd3 100644 --- a/.changeset/fix-encrypted-media-content-type.md +++ b/.changeset/fix-encrypted-media-content-type.md @@ -2,4 +2,4 @@ default: patch --- -Fix encrypted images and GIFs failing to render by sniffing the decrypted content type in the native media handler and skipping thumbnail requests for animated image formats. +Fix encrypted images and GIFs failing to render, and improve media cache handling. diff --git a/.changeset/fix-ios-composer-paste.md b/.changeset/fix-ios-composer-paste.md deleted file mode 100644 index 46a18c74b..000000000 --- a/.changeset/fix-ios-composer-paste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Fix pasting text into the message composer on iOS, where the webview hands the paste event an empty clipboard and nothing got inserted. diff --git a/.changeset/fix-macos-titlebar.md b/.changeset/fix-macos-titlebar.md deleted file mode 100644 index 08d539766..000000000 --- a/.changeset/fix-macos-titlebar.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Remove the duplicate title on macos title bar. Also fixes the duplicate title bar when the custom one is enabled on macos. diff --git a/.changeset/fix-mobile-back-double-nav.md b/.changeset/fix-mobile-back-double-nav.md deleted file mode 100644 index a6e427f5f..000000000 --- a/.changeset/fix-mobile-back-double-nav.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Stop opening rooms (and other mobile nav surfaces) twice on a single tap, which made backing out take two back presses. diff --git a/.changeset/fix-mobile-drawer-offscreen-scroll.md b/.changeset/fix-mobile-drawer-offscreen-scroll.md index da2c6d412..f4e8d4ce2 100644 --- a/.changeset/fix-mobile-drawer-offscreen-scroll.md +++ b/.changeset/fix-mobile-drawer-offscreen-scroll.md @@ -2,4 +2,4 @@ default: patch --- -Fixed the mobile nav drawer sliding permanently out of frame after the keyboard or a focus change scrolled the panel track. +Fix the navigation drawer sliding permanently out of frame after the keyboard or a focus change scrolls the panel track. diff --git a/.changeset/fix-mobile-edit-keyboard.md b/.changeset/fix-mobile-edit-keyboard.md index 724840ca2..1d0dbd7bf 100644 --- a/.changeset/fix-mobile-edit-keyboard.md +++ b/.changeset/fix-mobile-edit-keyboard.md @@ -2,4 +2,4 @@ default: patch --- -Fix keyboard flickering when editing messages on mobile. +Fix keyboard flickering when editing messages. diff --git a/.changeset/fix-mobile-error-reporting.md b/.changeset/fix-mobile-error-reporting.md deleted file mode 100644 index 74e87fea8..000000000 --- a/.changeset/fix-mobile-error-reporting.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Restore crash reporting actions in the mobile app. diff --git a/.changeset/fix-mobile-selects-and-long-press-sheet.md b/.changeset/fix-mobile-selects-and-long-press-sheet.md index c463054c2..ac8a5f6f6 100644 --- a/.changeset/fix-mobile-selects-and-long-press-sheet.md +++ b/.changeset/fix-mobile-selects-and-long-press-sheet.md @@ -2,4 +2,4 @@ default: patch --- -Show setting selects as a dialog on mobile instead of a bottom sheet, keep a long-pressed room's menu open, and stop wide setting tiles squeezing their title. +Show setting selects as dialogs where appropriate, keep a long-pressed room's menu open, and stop wide setting tiles squeezing their title. diff --git a/.changeset/fix-mobile-touch-feedback.md b/.changeset/fix-mobile-touch-feedback.md index 6e771a620..8b0f737ee 100644 --- a/.changeset/fix-mobile-touch-feedback.md +++ b/.changeset/fix-mobile-touch-feedback.md @@ -2,4 +2,4 @@ default: patch --- -Improve mobile touch feedback and prevent accidental presses. +Improve touch feedback and prevent accidental presses. diff --git a/.changeset/fix-notification-preview-and-transport.md b/.changeset/fix-notification-preview-and-transport.md deleted file mode 100644 index 368793b10..000000000 --- a/.changeset/fix-notification-preview-and-transport.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Fix encrypted message content appearing in notifications when previews are disabled, and keep push working when switching notification transports fails. diff --git a/.changeset/fix-overlapping-panels-mobile-swipe.md b/.changeset/fix-overlapping-panels-mobile-swipe.md index 2c2ad2169..4dcac6dab 100644 --- a/.changeset/fix-overlapping-panels-mobile-swipe.md +++ b/.changeset/fix-overlapping-panels-mobile-swipe.md @@ -2,4 +2,4 @@ default: patch --- -Smoother mobile navigation and faster room opening. +Make navigation smoother and room opening faster. diff --git a/.changeset/fix-profile-sheet-surface-color.md b/.changeset/fix-profile-sheet-surface-color.md index 9585b4f12..50ca0cddb 100644 --- a/.changeset/fix-profile-sheet-surface-color.md +++ b/.changeset/fix-profile-sheet-surface-color.md @@ -2,4 +2,4 @@ default: patch --- -Colour mobile profile sheets with the profile's hero colour again, including the drag handle and the navigation bar inset. Restore full scrolling in the pinned-messages sheet. +Colour profile sheets with the profile's hero colour again, including the drag handle and navigation bar inset. Restore full scrolling in the pinned-messages sheet. diff --git a/.changeset/fix-push-transport-switch.md b/.changeset/fix-push-transport-switch.md deleted file mode 100644 index 9d2bd3668..000000000 --- a/.changeset/fix-push-transport-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Switching to native push notifications now correctly uses the platform's native delivery instead of keeping the old push app. diff --git a/.changeset/fix-tauri-external-link.md b/.changeset/fix-tauri-external-link.md deleted file mode 100644 index 38c0f6343..000000000 --- a/.changeset/fix-tauri-external-link.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -tauri: make sure external links open in separate browser, instead of replacing the app diff --git a/.changeset/fix-thread-rendering-and-avatars.md b/.changeset/fix-thread-rendering-and-avatars.md index ab4846fe2..7a37939f1 100644 --- a/.changeset/fix-thread-rendering-and-avatars.md +++ b/.changeset/fix-thread-rendering-and-avatars.md @@ -2,4 +2,4 @@ default: patch --- -Fix thread messages so mentions use nicknames, inline images keep their sizing, and sender profiles come from the cache instead of rendering blank. Room avatars now load in the Tauri desktop and Android apps. +Fix thread messages so mentions use nicknames, inline images keep their sizing, and sender profiles come from the cache instead of rendering blank. Room avatars now load reliably. diff --git a/.changeset/fix-voice-record-pointercancel.md b/.changeset/fix-voice-record-pointercancel.md index e8256a279..dc81f35b6 100644 --- a/.changeset/fix-voice-record-pointercancel.md +++ b/.changeset/fix-voice-record-pointercancel.md @@ -2,4 +2,4 @@ default: patch --- -Fix voice recording continuing indefinitely when the record button is rapidly tapped on Android. +Fix voice recording continuing indefinitely when the record button is rapidly tapped. diff --git a/.changeset/media-auth-and-slow-loading.md b/.changeset/media-auth-and-slow-loading.md deleted file mode 100644 index a2ec5c78f..000000000 --- a/.changeset/media-auth-and-slow-loading.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Fix media 401 errors, improve slow-internet media loading, and add native streaming decryption for encrypted media in Tauri. diff --git a/.changeset/media-slow-network-and-ipc-resilience.md b/.changeset/media-slow-network-and-ipc-resilience.md index 1b07c2ff1..6f44a5488 100644 --- a/.changeset/media-slow-network-and-ipc-resilience.md +++ b/.changeset/media-slow-network-and-ipc-resilience.md @@ -2,4 +2,4 @@ default: patch --- -Fix encrypted images failing to load on Android, and improve media loading on slow connections. +Improve encrypted-media loading and error handling on slow connections. diff --git a/.changeset/mobile-bottom-sheet-consolidation.md b/.changeset/mobile-bottom-sheet-consolidation.md index 5c8693f60..eb62ac1f1 100644 --- a/.changeset/mobile-bottom-sheet-consolidation.md +++ b/.changeset/mobile-bottom-sheet-consolidation.md @@ -2,4 +2,4 @@ default: minor --- -Rework the mobile emoji picker as a proper bottom sheet that keeps its size when the keyboard opens and can be swiped down to dismiss. +Rework the emoji picker as a bottom sheet that keeps its size when the keyboard opens and can be swiped down to dismiss. diff --git a/.changeset/mobile-full-screen-pages.md b/.changeset/mobile-full-screen-pages.md deleted file mode 100644 index 1f793ca43..000000000 --- a/.changeset/mobile-full-screen-pages.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -sable: patch ---- - -Open search, room creation, and bug reporting full-screen on mobile. diff --git a/.changeset/mobile-native-ux.md b/.changeset/mobile-native-ux.md deleted file mode 100644 index cd50e0b56..000000000 --- a/.changeset/mobile-native-ux.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -Improve mobile UX with native back button support, haptics, and iOS keyboard handling. diff --git a/.changeset/native-push-notifications.md b/.changeset/native-push-notifications.md deleted file mode 100644 index ce391d7a6..000000000 --- a/.changeset/native-push-notifications.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -Add native push notifications with reply actions, content preview, and configurable gateway diff --git a/.changeset/native-share-sheet.md b/.changeset/native-share-sheet.md deleted file mode 100644 index 3ba121e87..000000000 --- a/.changeset/native-share-sheet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -Share content via native system share menu or copy links on desktop. diff --git a/.changeset/optional-custom-titlebar.md b/.changeset/optional-custom-titlebar.md deleted file mode 100644 index 61dbc8afe..000000000 --- a/.changeset/optional-custom-titlebar.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Allow using native window chrome instead of the custom title bar. diff --git a/.changeset/polish-account-settings-mobile.md b/.changeset/polish-account-settings-mobile.md index ea729ff92..c96e6207a 100644 --- a/.changeset/polish-account-settings-mobile.md +++ b/.changeset/polish-account-settings-mobile.md @@ -2,4 +2,4 @@ default: patch --- -Polish the account panel and settings layout on mobile. +Polish the account panel and settings layout. diff --git a/.changeset/polish-mobile-chat-input.md b/.changeset/polish-mobile-chat-input.md index 3a96b999b..b1fc813fb 100644 --- a/.changeset/polish-mobile-chat-input.md +++ b/.changeset/polish-mobile-chat-input.md @@ -2,4 +2,4 @@ default: patch --- -Polish the mobile chat input with adaptive send and recording controls, easier photo attachment, and more reliable Android uploads. +Polish the chat input with adaptive send and recording controls, easier photo attachment, and more reliable uploads. diff --git a/.changeset/refactor-message-rendering-paths.md b/.changeset/refactor-message-rendering-paths.md deleted file mode 100644 index 03bed8b36..000000000 --- a/.changeset/refactor-message-rendering-paths.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Improve message rendering consistency across views. diff --git a/.changeset/remove-more-unused-exports.md b/.changeset/remove-more-unused-exports.md deleted file mode 100644 index 6eae1d296..000000000 --- a/.changeset/remove-more-unused-exports.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Remove the remaining unused exports flagged by fallow across the codebase. diff --git a/.changeset/remove-unused-exports.md b/.changeset/remove-unused-exports.md deleted file mode 100644 index 2078a8731..000000000 --- a/.changeset/remove-unused-exports.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Remove unused exports flagged by fallow across notification transport, command barrel, and plugin barrels. diff --git a/.changeset/remove_access_to_chromium_features_on_linux_open_new_tab_download_manager_etc.md b/.changeset/remove_access_to_chromium_features_on_linux_open_new_tab_download_manager_etc.md deleted file mode 100644 index 36b0936f7..000000000 --- a/.changeset/remove_access_to_chromium_features_on_linux_open_new_tab_download_manager_etc.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -# remove access to chromium features on linux (open new tab, download manager, etc) diff --git a/.changeset/room-nav-mobile-options-sheet.md b/.changeset/room-nav-mobile-options-sheet.md index 4d4ae16c0..3b72fd81d 100644 --- a/.changeset/room-nav-mobile-options-sheet.md +++ b/.changeset/room-nav-mobile-options-sheet.md @@ -2,4 +2,4 @@ default: patch --- -Keep the mobile room options sheet open instead of dismissing it as soon as the pointer leaves the room. +Keep the room options sheet open instead of dismissing it as soon as the pointer leaves the room. diff --git a/.changeset/share-into-app-mobile.md b/.changeset/share-into-app-mobile.md deleted file mode 100644 index d667f7437..000000000 --- a/.changeset/share-into-app-mobile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -Share text, media, and files into Sable directly from other mobile apps. diff --git a/.changeset/share-one-settings-shell.md b/.changeset/share-one-settings-shell.md deleted file mode 100644 index 41ed1a9d9..000000000 --- a/.changeset/share-one-settings-shell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Share one settings shell between the global settings route and the room settings modal. diff --git a/.changeset/swipe-to-edit.md b/.changeset/swipe-to-edit.md index 6897c15f9..230cb9d57 100644 --- a/.changeset/swipe-to-edit.md +++ b/.changeset/swipe-to-edit.md @@ -2,4 +2,4 @@ default: patch --- -Add swipe-to-edit gesture on mobile messages. +Add swipe-to-edit gestures to messages. diff --git a/.changeset/tauri.md b/.changeset/tauri.md index 45ccde0da..23aba9eef 100644 --- a/.changeset/tauri.md +++ b/.changeset/tauri.md @@ -3,3 +3,8 @@ default: minor --- Add beta builds for desktop and mobile. + +- Greatly improved the mobile experience. +- Added UnifiedPush support and improved notification reliability. +- Improved the desktop experience with better shortcuts, updates, and window controls. +- Improved native media handling, sharing, and diagnostics. diff --git a/.changeset/unify-update-popups.md b/.changeset/unify-update-popups.md deleted file mode 100644 index b827ec8b9..000000000 --- a/.changeset/unify-update-popups.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Made update popups use in-app modals instead of calling os native dialogs. diff --git a/.changeset/update-oauth-implementation.md b/.changeset/update-oauth-implementation.md deleted file mode 100644 index 84818be38..000000000 --- a/.changeset/update-oauth-implementation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -Updated OIDC implementation with new matrix-js-sdk version. diff --git a/src/app/plugins/markdown/expandBlockNewlines.test.ts b/src/app/plugins/markdown/expandBlockNewlines.test.ts index 154284191..948d85733 100644 --- a/src/app/plugins/markdown/expandBlockNewlines.test.ts +++ b/src/app/plugins/markdown/expandBlockNewlines.test.ts @@ -33,6 +33,11 @@ describe('expandBlockBoundariesAfterSingleNewlines', () => { it('still expands before the first top-level list item after prose', () => { expect(expandBlockBoundariesAfterSingleNewlines('intro\n- item')).toBe('intro\n\n- item'); }); + + it('does not expand block-like lines inside a fenced code block with an info string', () => { + const md = '```text\n# heading\n- item\n+ item\n-# subheading\n1. item\n```'; + expect(expandBlockBoundariesAfterSingleNewlines(md)).toBe(md); + }); }); describe('consecutive blockquotes', () => { diff --git a/src/app/plugins/markdown/expandBlockNewlines.ts b/src/app/plugins/markdown/expandBlockNewlines.ts index f436bb66d..9be498cb9 100644 --- a/src/app/plugins/markdown/expandBlockNewlines.ts +++ b/src/app/plugins/markdown/expandBlockNewlines.ts @@ -50,7 +50,7 @@ function trySkipFenceEnd(md: string, i: number): number | null { if (!atLineStart) return null; const rest = md.slice(i); - const open = /^(\s{0,3})(`{3,}|~{3,})/.exec(rest); + const open = /^( {0,3})(`{3,}|~{3,})/.exec(rest); if (!open?.[2]) return null; const fenceStr = open[2]; @@ -58,20 +58,26 @@ function trySkipFenceEnd(md: string, i: number): number | null { const openLen = fenceStr.length; const afterOpen = i + open[0].length; - if (afterOpen < md.length && md[afterOpen] === '\n') { - const contentStart = afterOpen + 1; + const lineEnd = md.indexOf('\n', afterOpen); + const closeIdx = findSameLineFenceClose(md, afterOpen, tick, openLen); + if (closeIdx >= 0) { + let closeRun = 0; + while (closeIdx + closeRun < md.length && md[closeIdx + closeRun] === tick) closeRun++; + + return closeIdx + closeRun; + } + + if (lineEnd >= 0) { + const info = md.slice(afterOpen, lineEnd); + if (tick === '`' && info.includes('`')) return null; + + const contentStart = lineEnd + 1; const close = findMultilineFenceEnd(md, contentStart, tick, openLen); if (!close) return md.length; return close.blockEnd; } - const closeIdx = findSameLineFenceClose(md, afterOpen, tick, openLen); - if (closeIdx < 0) return null; - - let closeRun = 0; - while (closeIdx + closeRun < md.length && md[closeIdx + closeRun] === tick) closeRun++; - - return closeIdx + closeRun; + return null; } function afterLeadingIndent(line: string): string {