@licium/editor-plugin-code-syntax-highlight 3.1.0

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/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@licium/editor-plugin-code-syntax-highlight",
3
+ "version": "3.1.0",
4
+ "description": "TOAST UI Editor : Code Syntax Highlight Plugin",
5
+ "keywords": [
6
+ "nhn",
7
+ "nhn cloud",
8
+ "toast",
9
+ "toastui",
10
+ "toast-ui",
11
+ "editor",
12
+ "plugin",
13
+ "codeblock",
14
+ "highlight"
15
+ ],
16
+ "main": "dist/toastui-editor-plugin-code-syntax-highlight.js",
17
+ "types": "types/index.d.ts",
18
+ "files": [
19
+ "dist/*.js",
20
+ "dist/*.css",
21
+ "types/index.d.ts"
22
+ ],
23
+ "author": "NHN Cloud FE Development Lab <dl_javascript@nhn.com>",
24
+ "license": "MIT",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/nhn/tui.editor.git",
28
+ "directory": "plugins/code-syntax-highlight"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/nhn/tui.editor/issues"
32
+ },
33
+ "homepage": "https://ui.toast.com",
34
+ "browserslist": "last 2 versions, not ie <= 10",
35
+ "scripts": {
36
+ "lint": "eslint .",
37
+ "test:types": "tsc",
38
+ "test": "jest --watch",
39
+ "test:ci": "jest",
40
+ "serve": "snowpack dev",
41
+ "serve:ie": "webpack serve",
42
+ "serve:ie:all": "webpack serve --env all",
43
+ "build:all": "webpack build --env all",
44
+ "build:cdn": "webpack build --env cdn & webpack build --env cdn minify",
45
+ "build:cdn-all": "webpack build --env cdn all & webpack build --env cdn all minify",
46
+ "build": "webpack build && npm run build:cdn && npm run build:cdn-all && npm run build:all"
47
+ },
48
+ "devDependencies": {
49
+ "@types/prismjs": "^1.16.3",
50
+ "cross-env": "^6.0.3"
51
+ },
52
+ "dependencies": {
53
+ "prismjs": "^1.23.0"
54
+ },
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
58
+ "gitHead": "cbc7cab7b3f081a1aaf1d338b8138512ace132b9"
59
+ }
@@ -0,0 +1,21 @@
1
+ import type { PluginContext, PluginInfo } from '@licium/editor';
2
+ import Prism from 'prismjs';
3
+
4
+ type PrismJs = typeof Prism & {
5
+ manual: boolean;
6
+ };
7
+
8
+ declare global {
9
+ interface Window {
10
+ Prism: PrismJs;
11
+ }
12
+ }
13
+
14
+ export type PluginOptions = {
15
+ highlighter?: PrismJs;
16
+ };
17
+
18
+ export default function codeSyntaxHighlightPlugin(
19
+ context: PluginContext,
20
+ options: PluginOptions
21
+ ): PluginInfo;