@marp-team/marp-core 3.7.0 → 3.8.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marp-team/marp-core",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "The core of Marp tools",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -62,66 +62,65 @@
62
62
  },
63
63
  "nodemonConfig": {
64
64
  "watch": "./lib",
65
- "exec": "./node_modules/.bin/marp"
65
+ "exec": "npx @marp-team/marp-cli@latest -y"
66
66
  },
67
67
  "devDependencies": {
68
- "@marp-team/marp-cli": "^2.5.0",
69
68
  "@rollup/plugin-alias": "^5.0.0",
70
- "@rollup/plugin-commonjs": "^25.0.0",
69
+ "@rollup/plugin-commonjs": "^25.0.3",
71
70
  "@rollup/plugin-json": "^6.0.0",
72
71
  "@rollup/plugin-node-resolve": "^15.1.0",
73
72
  "@rollup/plugin-replace": "^5.0.2",
74
73
  "@rollup/plugin-terser": "^0.4.3",
75
- "@rollup/plugin-typescript": "^11.1.1",
76
- "@tsconfig/node12": "^1.0.11",
74
+ "@rollup/plugin-typescript": "^11.1.2",
75
+ "@tsconfig/node12": "^12.1.0",
77
76
  "@twemoji/api": "^14.1.2",
78
- "@types/jest": "^29.5.2",
79
- "@typescript-eslint/eslint-plugin": "^5.59.9",
80
- "@typescript-eslint/parser": "^5.59.9",
77
+ "@types/jest": "^29.5.3",
78
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
79
+ "@typescript-eslint/parser": "^6.2.1",
81
80
  "autoprefixer": "^10.4.14",
82
81
  "cheerio": "^1.0.0-rc.12",
83
82
  "cssnano": "^6.0.1",
84
83
  "emoji-regex": "^10.2.1",
85
- "eslint": "^8.42.0",
86
- "eslint-config-prettier": "^8.8.0",
87
- "eslint-plugin-import": "^2.27.5",
88
- "eslint-plugin-jest": "^27.2.1",
84
+ "eslint": "^8.46.0",
85
+ "eslint-config-prettier": "^8.9.0",
86
+ "eslint-plugin-import": "^2.28.0",
87
+ "eslint-plugin-jest": "^27.2.3",
89
88
  "github-markdown-css": "^5.2.0",
90
- "jest": "^29.5.0",
91
- "jest-environment-jsdom": "^29.5.0",
89
+ "jest": "^29.6.2",
90
+ "jest-environment-jsdom": "^29.6.2",
92
91
  "jest-junit": "^16.0.0",
93
92
  "jest-plugin-context": "^2.9.0",
94
93
  "markdown-it": "^13.0.1",
95
94
  "markdown-it-emoji": "^2.0.2",
96
95
  "mkdirp": "^3.0.1",
97
- "nodemon": "^2.0.22",
96
+ "nodemon": "^3.0.1",
98
97
  "npm-run-all": "^4.1.5",
99
98
  "postcss-minify-params": "^6.0.0",
100
99
  "postcss-minify-selectors": "^6.0.0",
101
100
  "postcss-normalize-whitespace": "^6.0.0",
102
101
  "postcss-url": "^10.1.3",
103
- "prettier": "^2.8.8",
102
+ "prettier": "^3.0.0",
104
103
  "rimraf": "^5.0.1",
105
- "rollup": "^3.24.0",
104
+ "rollup": "^3.27.0",
106
105
  "rollup-plugin-postcss": "^4.0.2",
107
106
  "rollup-plugin-string": "^3.0.0",
108
- "sass": "^1.63.3",
107
+ "sass": "^1.64.2",
109
108
  "sass-extended-importer": "^0.4.2",
110
109
  "self-closing-tags": "^1.0.1",
111
- "stylelint": "^15.7.0",
110
+ "stylelint": "^15.10.2",
112
111
  "stylelint-config-prettier": "^9.0.5",
113
- "stylelint-config-standard-scss": "^9.0.0",
114
- "ts-jest": "29.1.0",
115
- "tslib": "^2.5.3",
116
- "typescript": "^5.1.3"
112
+ "stylelint-config-standard-scss": "^10.0.0",
113
+ "ts-jest": "29.1.1",
114
+ "tslib": "^2.6.1",
115
+ "typescript": "^5.1.6"
117
116
  },
118
117
  "dependencies": {
119
118
  "@marp-team/marpit": "^2.5.0",
120
119
  "@marp-team/marpit-svg-polyfill": "^2.1.0",
121
120
  "highlight.js": "^11.8.0",
122
- "katex": "^0.16.7",
121
+ "katex": "^0.16.8",
123
122
  "mathjax-full": "^3.2.2",
124
- "postcss": "^8.4.21",
123
+ "postcss": "^8.4.27",
125
124
  "postcss-selector-parser": "^6.0.13",
126
125
  "xss": "^1.0.14"
127
126
  },
@@ -0,0 +1,2 @@
1
+ /// <reference types="highlight.js" />
2
+ export declare const generateHighlightJSInstance: () => import("highlight.js").HLJSApi;
@@ -1,4 +1,5 @@
1
1
  import { Marpit, Options, ThemeSetPackOptions } from '@marp-team/marpit';
2
+ import type { HLJSApi } from 'highlight.js';
2
3
  import * as emojiPlugin from './emoji/emoji';
3
4
  import * as mathPlugin from './math/math';
4
5
  import * as scriptPlugin from './script/script';
@@ -18,11 +19,13 @@ export interface MarpOptions extends Options {
18
19
  }
19
20
  export declare class Marp extends Marpit {
20
21
  readonly options: Required<MarpOptions>;
22
+ private _highlightjs;
21
23
  static readonly html: {
22
24
  br: never[];
23
25
  };
24
26
  constructor(opts?: MarpOptions);
25
27
  protected applyMarkdownItPlugins(md: any): void;
28
+ get highlightjs(): HLJSApi;
26
29
  highlighter(code: string, lang: string, attrs: string): string;
27
30
  protected renderStyle(theme?: string): string;
28
31
  protected themeSetPackOptions(): ThemeSetPackOptions;