Timothy Lin 4 rokov pred
rodič
commit
925c287305
4 zmenil súbory, kde vykonal 1116 pridanie a 3059 odobranie
  1. 1 1
      README.md
  2. 1109 3052
      package-lock.json
  3. 5 5
      package.json
  4. 1 1
      test.js

+ 1 - 1
README.md

@@ -178,7 +178,7 @@ If you would like to silently skip `<code>` elements with invalid languages or s
 Type: `boolean`.
 Default: `false`.
 
-By default, line numbers will only be displayed for code block cells with a meta property that includes 'showLineNumbers'.
+By default, line numbers will only be displayed for code block cells with a meta property that includes 'showLineNumbers'. To control the starting line number use `showLineNumbers=X`, where `X` is the starting line number as a meta property for the code block.
 
 If you would like to show line numbers for all code blocks, without specifying the meta property, set this to `true`.
 

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 1109 - 3052
package-lock.json


+ 5 - 5
package.json

@@ -1,6 +1,6 @@
 {
   "name": "rehype-prism-plus",
-  "version": "1.1.1",
+  "version": "1.1.2",
   "description": "rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers",
   "source": "index.js",
   "files": [
@@ -16,8 +16,8 @@
     }
   },
   "scripts": {
-    "build": "tsc -b && vite build --config vite.config.cjs",
-    "tsc": "tsc --watch --noEmit",
+    "build": "tsc -b && microbundle --format esm",
+    "tsc": "tsc --watch",
     "lint": "eslint .",
     "prettier": "prettier --write '*.js'",
     "test": "uvu"
@@ -57,11 +57,11 @@
     "eslint-plugin-node": "^11.1.0",
     "husky": "^4.0.0",
     "lint-staged": "^11.1.2",
+    "microbundle": "^0.14.1",
     "prettier": "^2.3.2",
     "rehype": "^12.0.0",
     "typescript": "^4.3.5",
-    "uvu": "^0.5.1",
-    "vite": "^2.5.0"
+    "uvu": "^0.5.1"
   },
   "prettier": {
     "printWidth": 100,

+ 1 - 1
test.js

@@ -3,7 +3,7 @@ import * as assert from 'uvu/assert'
 import { visit } from 'unist-util-visit'
 import { rehype } from 'rehype'
 import dedent from 'dedent'
-import rehypePrism from './index.js'
+import rehypePrism from './dist/rehype-prism-plus.es.js'
 
 /**
  * Mock meta in code block

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov