Skip to content

Commit

Permalink
fix: removed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jan 18, 2022
1 parent addd2c3 commit 6a56b70
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {
} from "@codemirror/view";

import { tokenClassNodeProp } from "@codemirror/stream-parser";
import { RangeSetBuilder, Range } from "@codemirror/rangeset";
import { StateEffect, StateField, SelectionRange } from "@codemirror/state";
import { Range } from "@codemirror/rangeset";
import { StateEffect, StateField } from "@codemirror/state";

import {
Admonition,
Expand Down Expand Up @@ -427,6 +427,14 @@ export default class ObsidianAdmonition extends Plugin {
) {
super();
}
eq(widget: AdmonitionWidget) {
return (
this.type == widget.type &&
this.title == widget.title &&
this.collapse == widget.collapse &&
this.content == widget.content
);
}
toDOM(view: EditorView): HTMLElement {
const admonitionElement = self.getAdmonitionElement(
this.type,
Expand Down Expand Up @@ -610,11 +618,7 @@ export default class ObsidianAdmonition extends Plugin {
const content = split
.slice(1, end > -1 ? end : undefined)
.join("\n");
console.log(
"🚀 ~ file: main.ts ~ line 623 ~ end",
end,
content
);

const to =
from + line.length + content.length + 1;

Expand Down

0 comments on commit 6a56b70

Please sign in to comment.