marked-highlight
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "marked-highlight", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "marked highlight", | ||
@@ -44,26 +44,26 @@ "main": "./lib/index.cjs", | ||
"peerDependencies": { | ||
"marked": ">=4 <12" | ||
"marked": ">=4 <13" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.6", | ||
"@babel/preset-env": "^7.23.6", | ||
"@babel/core": "^7.23.9", | ||
"@babel/preset-env": "^7.23.9", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/commit-analyzer": "^11.1.0", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/github": "^9.2.5", | ||
"@semantic-release/github": "^9.2.6", | ||
"@semantic-release/npm": "^11.0.2", | ||
"@semantic-release/release-notes-generator": "^12.1.0", | ||
"babel-jest": "^29.7.0", | ||
"eslint": "^8.55.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-standard": "^17.1.0", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-n": "^16.4.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-n": "^16.6.2", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"highlight.js": "^11.9.0", | ||
"jest-cli": "^29.7.0", | ||
"marked": "^11.0.1", | ||
"marked": "^12.0.0", | ||
"pygmentize-bundled": "^2.3.0", | ||
"rollup": "^4.8.0", | ||
"semantic-release": "^22.0.10", | ||
"tsd": "^0.29.0" | ||
"rollup": "^4.9.6", | ||
"semantic-release": "^23.0.0", | ||
"tsd": "^0.30.4" | ||
}, | ||
@@ -70,0 +70,0 @@ "tsd": { |
@@ -5,9 +5,15 @@ # marked-highlight | ||
# Usage | ||
## Installation | ||
```sh | ||
npm install marked-highlight | ||
``` | ||
## Usage | ||
You will need to provide a function that transforms the `code` to html. | ||
```js | ||
import {Marked} from "marked"; | ||
import {markedHighlight} from "marked-highlight"; | ||
import { Marked } from "marked"; | ||
import { markedHighlight } from "marked-highlight"; | ||
import hljs from 'highlight.js'; | ||
@@ -43,4 +49,4 @@ | ||
```js | ||
import {Marked} from "marked"; | ||
import {markedHighlight} from "marked-highlight"; | ||
import { Marked } from "marked"; | ||
import { markedHighlight } from "marked-highlight"; | ||
import pygmentize from 'pygmentize-bundled'; | ||
@@ -80,3 +86,3 @@ | ||
## `options` | ||
### `options` | ||
@@ -83,0 +89,0 @@ | option | type | default | description | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16777
91