diff --git a/src/MarkedOptions.ts b/src/MarkedOptions.ts index c83eb58247..2c6462e64c 100644 --- a/src/MarkedOptions.ts +++ b/src/MarkedOptions.ts @@ -1,8 +1,8 @@ import type { Token, Tokens, TokensList } from './Tokens.ts'; -import { _Parser } from './Parser.ts'; -import { _Lexer } from './Lexer.ts'; -import { _Renderer } from './Renderer.ts'; -import { _Tokenizer } from './Tokenizer.ts'; +import type { _Parser } from './Parser.ts'; +import type { _Lexer } from './Lexer.ts'; +import type { _Renderer } from './Renderer.ts'; +import type { _Tokenizer } from './Tokenizer.ts'; export interface SluggerOptions { /** Generates the next unique slug without updating the internal accumulator. */ diff --git a/src/Renderer.ts b/src/Renderer.ts index 72df88ae7f..07416e5c76 100644 --- a/src/Renderer.ts +++ b/src/Renderer.ts @@ -4,7 +4,7 @@ import { escape } from './helpers.ts'; import type { MarkedOptions } from './MarkedOptions.ts'; -import { Slugger } from './marked.ts'; +import type { _Slugger } from './Slugger.ts'; /** * Renderer @@ -49,7 +49,7 @@ export class _Renderer { return html; } - heading(text: string, level: number, raw: string, slugger: Slugger): string { + heading(text: string, level: number, raw: string, slugger: _Slugger): string { if (this.options.headerIds) { const id = this.options.headerPrefix + slugger.slug(raw); return `${text}\n`; diff --git a/src/Tokenizer.ts b/src/Tokenizer.ts index 2161fb98e5..f5be1821b6 100644 --- a/src/Tokenizer.ts +++ b/src/Tokenizer.ts @@ -5,7 +5,7 @@ import { escape, findClosingBracket } from './helpers.ts'; -import { _Lexer } from './Lexer.ts'; +import type { _Lexer } from './Lexer.ts'; import type { Links, Tokens } from './Tokens.ts'; import type { MarkedOptions } from './MarkedOptions.ts'; diff --git a/tsconfig.json b/tsconfig.json index afdff714cf..a99ab6a640 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,8 @@ "allowSyntheticDefaultImports": true, "moduleResolution": "NodeNext", "noImplicitAny": false, - "allowImportingTsExtensions": true + "allowImportingTsExtensions": true, + "sourceMap": false }, "include": [ "src/*.ts"