mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-01 18:31:31 +08:00
feat(highlights): ignore footnotes
This commit is contained in:
parent
85c225fe05
commit
1dcc839bab
@ -247,6 +247,13 @@ export default class HighlightsListWidget extends RightPanelWidget {
|
||||
const subHtml = match[0];
|
||||
const startIndex = match.index;
|
||||
const endIndex = combinedRegex.lastIndex;
|
||||
|
||||
// Ignore footnotes.
|
||||
if (subHtml.startsWith('<strong><a href="#fnref')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
console.log(subHtml);
|
||||
if (prevEndIndex !== -1 && startIndex === prevEndIndex) {
|
||||
// If the previous element is connected to this element in HTML, then concatenate them into one.
|
||||
$highlightsList.children().last().append(subHtml);
|
||||
|
Loading…
x
Reference in New Issue
Block a user