We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
render
1 parent 2f5c976 commit 142f564Copy full SHA for 142f564
src/index.ts
@@ -43,12 +43,8 @@ export class MarkdownItAsync extends MarkdownIt {
43
this.map = map
44
}
45
46
- render(_src: string, _env?: any): string {
47
- throw new Error('Use `.renderAsync` instead')
48
- }
49
-
50
async renderAsync(src: string, env?: any): Promise<string> {
51
- const result = super.render(src, env)
+ const result = this.render(src, env)
52
return replaceAsync(result, placeholderRe, async (match, id) => {
53
if (!this.map.has(id))
54
throw new Error(`Unknown highlight placeholder id: ${id}`)
0 commit comments