From a312080f7cef33fd848fe598d2a6236a0b0c3cb0 Mon Sep 17 00:00:00 2001 From: Hermotimus Date: Fri, 9 Jan 2026 02:16:07 +0100 Subject: [PATCH] fix(tts): footnotes anchors and superscript filtering (#2890) --- apps/readest-app/src/services/tts/TTSController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/readest-app/src/services/tts/TTSController.ts b/apps/readest-app/src/services/tts/TTSController.ts index b8adb439..6e0b7774 100644 --- a/apps/readest-app/src/services/tts/TTSController.ts +++ b/apps/readest-app/src/services/tts/TTSController.ts @@ -111,8 +111,8 @@ export class TTSController extends EventTarget { await this.view.initTTS( granularity, createRejectFilter({ - tags: ['rt', 'sup'], - contents: [{ tag: 'a', content: /^\d+$/ }], + tags: ['rt'], + contents: [{ tag: 'a', content: /^[\[\(]?[\*\d]+[\)\]]?$/}], }), this.#getHighlighter(), );