Skip to content

Commit ab1dd57

Browse files
committed
remove condition
1 parent f36eac1 commit ab1dd57

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

dist/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class InlineCode {
6767
this.button.classList.add(this.iconClasses.base);
6868
this.button.innerHTML = this.toolboxIcon;
6969

70+
console.log('this tag', this.tag);
7071
return this.button;
7172
}
7273

@@ -81,6 +82,7 @@ class InlineCode {
8182
}
8283

8384
let termWrapper = this.api.selection.findParentTag(this.tag, InlineCode.CSS);
85+
console.log(termWrapper);
8486

8587
/**
8688
* If start or end of selection is in the highlighted block
@@ -176,14 +178,8 @@ class InlineCode {
176178
*/
177179
static get sanitize() {
178180
return {
179-
code: (el) => {
180-
if (el.classList.contains(InlineCode.CSS)) {
181-
return {
182-
class: InlineCode.CSS
183-
};
184-
} else {
185-
return false;
186-
}
181+
code: {
182+
class: InlineCode.CSS
187183
}
188184
};
189185
}

0 commit comments

Comments
 (0)