Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Chan committed Jan 20, 2022
1 parent 402f21f commit 37f8702
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App, ButtonComponent, Plugin, PluginSettingTab, Setting } from 'obsidian';
import { App, Plugin, PluginSettingTab, Setting } from 'obsidian';
import { Decoration, MatchDecorator, ViewPlugin, ViewUpdate } from "@codemirror/view";
import { RangeSet } from "@codemirror/rangeset";

Expand Down Expand Up @@ -131,11 +131,11 @@ export default class Linkify extends Plugin {
}

let index = m.match.index;
let matched_text = m.match[0];
let matchedText = m.match[0];
let before = text.substring(0, index);
let after = text.substring(index + matched_text.length);
let after = text.substring(index + matchedText.length);
let anchor = document.createElement("a");
anchor.textContent = matched_text;
anchor.textContent = matchedText;
anchor.href = m.link;
let nodes: (string | Node)[] = [];
nodes.push(before);
Expand Down

0 comments on commit 37f8702

Please sign in to comment.