Skip to content

Commit dec7761

Browse files
author
pro-src
committed
Check if plugin is already loaded before adding components
1 parent f4c0053 commit dec7761

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ module.exports = (PluginHost: Application) => {
66

77
const app = PluginHost.owner;
88

9+
if (app.converter.hasComponent('markdown')) {
10+
return;
11+
}
12+
913
/**
1014
* Expose additional options for consumption.
1115
*/

0 commit comments

Comments
 (0)