fix: fix sourcemaps and circular dependencies (#2929)

This commit is contained in:
Tony Brix 2023-08-09 22:40:16 -06:00 committed by GitHub
parent 5e67cdff35
commit eb4ce21127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 8 deletions

View File

@ -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. */

View File

@ -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 `<h${level} id="${id}">${text}</h${level}>\n`;

View File

@ -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';

View File

@ -9,7 +9,8 @@
"allowSyntheticDefaultImports": true,
"moduleResolution": "NodeNext",
"noImplicitAny": false,
"allowImportingTsExtensions": true
"allowImportingTsExtensions": true,
"sourceMap": false
},
"include": [
"src/*.ts"