Skip to content

Commit

Permalink
fix: fix sourcemaps and circular dependencies (#2929)
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech authored Aug 10, 2023
1 parent 5e67cdf commit eb4ce21
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/MarkedOptions.ts
Original file line number Diff line number Diff line change
@@ -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. */
Expand Down
4 changes: 2 additions & 2 deletions src/Renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`;
Expand Down
2 changes: 1 addition & 1 deletion src/Tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"allowSyntheticDefaultImports": true,
"moduleResolution": "NodeNext",
"noImplicitAny": false,
"allowImportingTsExtensions": true
"allowImportingTsExtensions": true,
"sourceMap": false
},
"include": [
"src/*.ts"
Expand Down

1 comment on commit eb4ce21

@vercel
Copy link

@vercel vercel bot commented on eb4ce21 Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.