forked from akai/readest
fix(tts): footnotes anchors and superscript filtering (#2890)
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user