Skip to content

Commit

Permalink
fix: 🐛 Filter out Templater templates (Fix #198)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Dec 5, 2021
1 parent 7ee5046 commit 187a270
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
22 changes: 13 additions & 9 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24862,15 +24862,17 @@ class MatrixView extends require$$0.ItemView {
const closed = getReflexiveClosure(g, userHiers);
const closedUp = getSubInDirs(closed, "up");
const iSamesII = [];
closedUp.forEachOutEdge(basename, (k, a, s, par) => {
if (hier.up.includes(a.field)) {
closedUp.forEachInEdge(par, (k, a, s, t) => {
if (s === basename && !settings.treatCurrNodeAsImpliedSibling)
return;
iSamesII.push(this.toInternalLinkObj(s, false, t));
});
}
});
if (closedUp.hasNode(basename)) {
closedUp.forEachOutEdge(basename, (k, a, s, par) => {
if (hier.up.includes(a.field)) {
closedUp.forEachInEdge(par, (k, a, s, t) => {
if (s === basename && !settings.treatCurrNodeAsImpliedSibling)
return;
iSamesII.push(this.toInternalLinkObj(s, false, t));
});
}
});
}
is.push(...iSamesII);
// !SECTION
iu = this.removeDuplicateImplied(ru, iu);
Expand Down Expand Up @@ -50953,6 +50955,8 @@ class BCPlugin extends require$$0.Plugin {
iterateHiers(userHiers, (hier, dir, field) => {
const values = this.parseFieldValue(frontm[field]);
values.forEach((target) => {
if (target.startsWith("<%") && target.endsWith("%>"))
return;
const targetOrder = this.getTargetOrder(frontms, target);
this.populateMain(mainG, basename, field, target, sourceOrder, targetOrder);
});
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,7 @@ export default class BCPlugin extends Plugin {
const values = this.parseFieldValue(frontm[field]);

values.forEach((target) => {
if (target.startsWith("<%") && target.endsWith("%>")) return;
const targetOrder = this.getTargetOrder(frontms, target);

this.populateMain(
Expand Down

0 comments on commit 187a270

Please sign in to comment.