Skip to content

Commit

Permalink
Applies setting for transclusion by default to all commands re #20
Browse files Browse the repository at this point in the history
  • Loading branch information
lynchjames committed Nov 11, 2020
1 parent ae1683a commit ed43f97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doc.ts
Expand Up @@ -15,7 +15,8 @@ export default class NRDoc {
}

replaceContent(fileName:string, doc:Editor, split?:boolean): void {
const internalLink = `[[${fileName}]]`;
const transclude = this.settings.transcludeByDefault ? '!' : '';
const internalLink = `${transclude}[[${fileName}]]`;
if(split){
this.removeNoteRemainder(doc, internalLink);
} else {
Expand Down

0 comments on commit ed43f97

Please sign in to comment.