Skip to content

Commit

Permalink
fix: fixes admonition conversion on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Mar 27, 2022
1 parent ad6f39c commit b4d29fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ export default class AdmonitionSetting extends PluginSettingTab {
}, 2000);
return;
}
setImmediate(async () => {
setTimeout(async () => {
const file = this.queue.shift();
const contents = await this.app.vault.read(file);
if (/> \[!([^ :]+)(?::[ ]?(.+))\](x|\+|\-)?/.test(contents)) {
Expand Down Expand Up @@ -578,7 +578,7 @@ export default class AdmonitionSetting extends PluginSettingTab {
}, 2000);
return;
}
setImmediate(async () => {
setTimeout(async () => {
const file = this.queue.shift();
let contents = await this.app.vault.read(file);
if (/```ad-(\w+)\n([\s\S]*?)?\n```?/m.test(contents)) {
Expand Down

0 comments on commit b4d29fc

Please sign in to comment.