|
1 | 1 | import { marked } from 'marked';
|
2 |
| -import { isAbsolutePath, getPath, getParentPath } from '../router/util'; |
3 |
| -import { isFn, merge, cached, isPrimitive } from '../util/core'; |
4 |
| -import { tree as treeTpl } from './tpl'; |
5 |
| -import { genTree } from './gen-tree'; |
6 |
| -import { slugify } from './slugify'; |
7 |
| -import { emojify } from './emojify'; |
| 2 | +import { isAbsolutePath, getPath, getParentPath } from '../router/util.js'; |
| 3 | +import { isFn, merge, cached, isPrimitive } from '../util/core.js'; |
| 4 | +import { tree as treeTpl } from './tpl.js'; |
| 5 | +import { genTree } from './gen-tree.js'; |
| 6 | +import { slugify } from './slugify.js'; |
| 7 | +import { emojify } from './emojify.js'; |
8 | 8 | import {
|
9 | 9 | getAndRemoveConfig,
|
10 | 10 | removeAtag,
|
11 | 11 | getAndRemoveDocisfyIgnorConfig,
|
12 |
| -} from './utils'; |
13 |
| -import { imageCompiler } from './compiler/image'; |
14 |
| -import { highlightCodeCompiler } from './compiler/code'; |
15 |
| -import { paragraphCompiler } from './compiler/paragraph'; |
16 |
| -import { taskListCompiler } from './compiler/taskList'; |
17 |
| -import { taskListItemCompiler } from './compiler/taskListItem'; |
18 |
| -import { linkCompiler } from './compiler/link'; |
| 12 | +} from './utils.js'; |
| 13 | +import { imageCompiler } from './compiler/image.js'; |
| 14 | +import { highlightCodeCompiler } from './compiler/code.js'; |
| 15 | +import { paragraphCompiler } from './compiler/paragraph.js'; |
| 16 | +import { taskListCompiler } from './compiler/taskList.js'; |
| 17 | +import { taskListItemCompiler } from './compiler/taskListItem.js'; |
| 18 | +import { linkCompiler } from './compiler/link.js'; |
19 | 19 |
|
20 | 20 | const cachedLinks = {};
|
21 | 21 |
|
@@ -115,6 +115,7 @@ export class Compiler {
|
115 | 115 | })(text);
|
116 | 116 |
|
117 | 117 | const curFileName = this.router.parse().file;
|
| 118 | + console.log('filename:', curFileName); |
118 | 119 |
|
119 | 120 | if (isCached) {
|
120 | 121 | this.toc = this.cacheTOC[curFileName];
|
|
0 commit comments