Skip to content

Commit b081c21

Browse files
committed
remove buttons dev mode lock and remove some logs
1 parent 8721293 commit b081c21

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/cm6/Cm5_Modes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ export function registerCm5HLModes(plugin: MetaBindPlugin): void {
7878
state.highlights = plugin.api.syntaxHighlighting.highlight(state.str, state.mdrcType, true);
7979
}
8080

81-
console.log(state.str, state.highlights.getHighlights());
81+
// console.log(state.str, state.highlights.getHighlights());
8282
}
8383

8484
const lineHighlights = state.highlights.getHighlights().filter(h => h.range.from.line === state.line);
8585
const highlight = lineHighlights.find(h => h.range.from.column === stream.pos + 1);
8686

87-
console.log(state.line, stream.pos, stream.peek(), highlight);
87+
// console.log(state.line, stream.pos, stream.peek(), highlight);
8888

8989
if (highlight === undefined) {
9090
stream.next();

src/main.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,10 @@ export default class MetaBindPlugin extends Plugin implements IPlugin {
152152
});
153153
}
154154

155-
if (this.settings.devMode) {
156-
this.registerMarkdownCodeBlockProcessor('meta-bind-button', (source, el, ctx) => {
157-
const button = new ButtonMDRC(el, source, this, ctx.sourcePath, getUUID());
158-
ctx.addChild(button);
159-
});
160-
}
155+
this.registerMarkdownCodeBlockProcessor('meta-bind-button', (source, el, ctx) => {
156+
const button = new ButtonMDRC(el, source, this, ctx.sourcePath, getUUID());
157+
ctx.addChild(button);
158+
});
161159
}
162160

163161
addCommands(): void {

0 commit comments

Comments
 (0)