Skip to content

Commit 6366b71

Browse files
authored
Merge pull request #34 from pro-src/issue-#33-plugin-already-loaded
Check if plugin is already loaded before adding components
2 parents f4c0053 + dec7761 commit 6366b71

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)