fix(tts): footnotes anchors and superscript filtering (#2890)

This commit is contained in:
Hermotimus
2026-01-09 02:16:07 +01:00
committed by GitHub
parent 462ca46fee
commit a312080f7c
@@ -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(),
);