diff options
Diffstat (limited to 'src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts')
-rw-r--r-- | src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts b/src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts index 2a323d76679..7220dbf1a4f 100644 --- a/src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts +++ b/src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts @@ -23,6 +23,7 @@ export interface IMarkdownRenderResult extends IDisposable { export interface IMarkdownRendererOptions { editor?: ICodeEditor; codeBlockFontFamily?: string; + codeBlockFontSize?: string; } /** @@ -93,6 +94,10 @@ export class MarkdownRenderer { element.style.fontFamily = this._options.codeBlockFontFamily; } + if (this._options.codeBlockFontSize !== undefined) { + element.style.fontSize = this._options.codeBlockFontSize; + } + return element; }, asyncRenderCallback: () => this._onDidRenderAsync.fire(), |