We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e68a4bd commit 1016324Copy full SHA for 1016324
src/plugins/line-numbers/prism-line-numbers.ts
@@ -1,3 +1,4 @@
1
+import prism from '../../global';
2
import { getParentPre, isActive } from '../../shared/dom-util';
3
import { isNonNull, noop } from '../../shared/util';
4
import { combineCallbacks } from '../../util/combine-callbacks';
@@ -199,7 +200,7 @@ export class LineNumbers {
199
200
}
201
202
-export default {
203
+const Self = {
204
id: 'line-numbers',
205
plugin () {
206
return new LineNumbers();
@@ -272,3 +273,7 @@ export default {
272
273
return combineCallbacks(removeListener, completeHook);
274
},
275
} as PluginProto<'line-numbers'>;
276
+
277
+export default Self;
278
279
+prism.components.add(Self);
0 commit comments