@tiptap/extension-code-block-lowlight 2.9.1 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/code-block-lowlight.d.ts.map +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +5 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/code-block-lowlight.ts +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-block-lowlight.d.ts","sourceRoot":"","sources":["../src/code-block-lowlight.ts"],"names":[],"mappings":"AAAA,OAAkB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAI1E,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"code-block-lowlight.d.ts","sourceRoot":"","sources":["../src/code-block-lowlight.ts"],"names":[],"mappings":"AAAA,OAAkB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAI1E,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,4DAuB5B,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -2734,6 +2734,11 @@ const CodeBlockLowlight = CodeBlock__default.default.extend({
|
|
|
2734
2734
|
return {
|
|
2735
2735
|
...(_a = this.parent) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
2736
2736
|
lowlight: {},
|
|
2737
|
+
languageClassPrefix: 'language-',
|
|
2738
|
+
exitOnTripleEnter: true,
|
|
2739
|
+
exitOnArrowDown: true,
|
|
2740
|
+
defaultLanguage: null,
|
|
2741
|
+
HTMLAttributes: {},
|
|
2737
2742
|
};
|
|
2738
2743
|
},
|
|
2739
2744
|
addProseMirrorPlugins() {
|