@vuepress/markdown 2.0.0-beta.27 → 2.0.0-beta.28

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.
@@ -1,3 +1,3 @@
1
1
  import type { RuleBlock } from 'markdown-it/lib/parser_block';
2
2
  import type { ImportCodePluginOptions } from './importCodePlugin';
3
- export declare const createImportCodeBlockRule: ({ handleImportPath, }: ImportCodePluginOptions) => RuleBlock;
3
+ export declare const createImportCodeBlockRule: ({ handleImportPath }: ImportCodePluginOptions) => RuleBlock;
@@ -8,7 +8,7 @@ const MIN_LENGTH = 9;
8
8
  const START_CODES = [64, 91, 99, 111, 100, 101];
9
9
  // regexp to match the import syntax
10
10
  const SYNTAX_RE = /^@\[code(?:{(?:(\d+)?-(\d+)?)})?(?: ([^\]]+))?\]\(([^)]*)\)/;
11
- const createImportCodeBlockRule = ({ handleImportPath = (str) => str, }) => (state, startLine, endLine, silent) => {
11
+ const createImportCodeBlockRule = ({ handleImportPath = (str) => str }) => (state, startLine, endLine, silent) => {
12
12
  // if it's indented more than 3 spaces, it should be a code block
13
13
  /* istanbul ignore if */
14
14
  if (state.sCount[startLine] - state.blkIndent >= 4) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/markdown",
3
- "version": "2.0.0-beta.27",
3
+ "version": "2.0.0-beta.28",
4
4
  "description": "Markdown package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@types/markdown-it": "^12.2.3",
30
- "@vuepress/shared": "2.0.0-beta.27",
31
- "@vuepress/utils": "2.0.0-beta.27",
30
+ "@vuepress/shared": "2.0.0-beta.28",
31
+ "@vuepress/utils": "2.0.0-beta.28",
32
32
  "markdown-it": "^12.2.0",
33
33
  "markdown-it-anchor": "^8.4.1",
34
34
  "markdown-it-emoji": "^2.0.0",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "2671a94fe6864e215eb84f318b7e657744a0bc5d"
40
+ "gitHead": "71c34816a79263c7dcba3ff0c103e264abdbf0d2"
41
41
  }