Skip to content

Commit

Permalink
fix: allow marked v6 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
baseplate-admin authored Aug 5, 2023
1 parent b819185 commit 74ffd0f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 70 deletions.
110 changes: 45 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"homepage": "https://github.com/markedjs/marked-mangle#readme",
"peerDependencies": {
"marked": "^4 || ^5"
"marked": "^4 || ^5 || ^6"
},
"devDependencies": {
"@babel/core": "^7.22.9",
Expand All @@ -59,7 +59,7 @@
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-promise": "^6.1.1",
"jest-cli": "^29.6.2",
"marked": "^5.0.4",
"marked": "^6.0.0",
"rollup": "^3.27.0",
"semantic-release": "^21.0.7",
"tsd": "^0.28.1"
Expand Down
7 changes: 4 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { marked } from "marked"
import type { marked } from 'marked';
import type { MarkedExtension } from 'marked';

/**
* Mangle email address
*
* @returns A {@link marked.MarkedExtension | MarkedExtension} to be passed to {@link marked.use | `marked.use()`}
* @returns A {@link MarkedExtension | MarkedExtension} to be passed to {@link marked.use | `marked.use()`}
*/
export function mangle(): marked.MarkedExtension;
export function mangle(): MarkedExtension;

0 comments on commit 74ffd0f

Please sign in to comment.