提交 e44d9a28 编写于 作者: M Matt Bierner

Rename parameter

上级 1802be3b
......@@ -140,12 +140,12 @@ export class MarkdownEngine {
return engine.parse(text.replace(UNICODE_NEWLINE_REGEX, ''), {});
}
public async render(document: SkinnyTextDocument | string): Promise<string> {
const config = this.getConfig(typeof document === 'string' ? undefined : document.uri);
public async render(input: SkinnyTextDocument | string): Promise<string> {
const config = this.getConfig(typeof input === 'string' ? undefined : input.uri);
const engine = await this.getEngine(config);
const tokens = typeof document === 'string'
? this.tokenizeString(document, engine)
: this.tokenizeDocument(document, config, engine);
const tokens = typeof input === 'string'
? this.tokenizeString(input, engine)
: this.tokenizeDocument(input, config, engine);
return engine.renderer.render(tokens, {
...(engine as any).options,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册