Fix/backlink binary (#8098)

* fix: prevent check binary tiddler for backlink

* refactor: test for backlink
This commit is contained in:
lin onetwo
2024-05-29 11:53:44 +01:00
committed by GitHub
parent 6910be795f
commit 47029bac9e
2 changed files with 61 additions and 45 deletions
+3
View File
@@ -70,6 +70,9 @@ BackSubIndexer.prototype.rebuild = function() {
* Get things that is being referenced in the text, e.g. tiddler names in the link syntax.
*/
BackSubIndexer.prototype._getTarget = function(tiddler) {
if(this.wiki.isBinaryTiddler(tiddler.fields.text)) {
return [];
}
var parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {});
if(parser) {
return this.wiki[this.extractor](parser.tree);