mirror of
https://github.com/markedjs/marked
synced 2024-11-21 15:54:33 +00:00
fix: don't export block or inline (#3427)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
447f5af7e4
commit
3f0430a45e
@ -87,7 +87,7 @@
|
||||
"build:docs": "npm run build && node docs/build.js",
|
||||
"build:man": "marked-man man/marked.1.md > man/marked.1",
|
||||
"build:reset": "git checkout upstream/master lib/marked.cjs lib/marked.umd.js lib/marked.esm.js marked.min.js",
|
||||
"build:types": "tsc && dts-bundle-generator --project tsconfig.json -o lib/marked.d.ts src/marked.ts && dts-bundle-generator --project tsconfig.json -o lib/marked.d.cts src/marked.ts",
|
||||
"build:types": "tsc && dts-bundle-generator --export-referenced-types --project tsconfig.json -o lib/marked.d.ts src/marked.ts && dts-bundle-generator --export-referenced-types --project tsconfig.json -o lib/marked.d.cts src/marked.ts",
|
||||
"lint": "eslint --fix",
|
||||
"rollup": "rollup -c rollup.config.js",
|
||||
"rules": "node test/rules.js",
|
||||
|
@ -117,5 +117,4 @@ export { _TextRenderer as TextRenderer } from './TextRenderer.ts';
|
||||
export { _Hooks as Hooks } from './Hooks.ts';
|
||||
export { Marked } from './Instance.ts';
|
||||
export type * from './MarkedOptions.ts';
|
||||
export type * from './rules.ts';
|
||||
export type * from './Tokens.ts';
|
||||
|
@ -370,3 +370,11 @@ marked.use({
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// @ts-expect-error block is not exported
|
||||
import { block } from 'marked';
|
||||
// @ts-expect-error inline is not exported
|
||||
import { inline } from 'marked';
|
||||
// Rules is exported
|
||||
import type { Rules } from 'marked';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user