File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import type {
33 OutputItem
44}
55from 'vscode-notebook-renderer' ;
6- import * as style from './style.css' ;
76import { OutputLoader } from './outputLoader' ;
87const aq = require ( 'arquero' ) ;
98const inputs = require ( '@observablehq/inputs' ) ;
@@ -49,12 +48,10 @@ export function render(output: IRenderInfo) {
4948 }
5049 else {
5150 // output text in pre/code tags
52- const pre = document . createElement ( 'pre' ) ;
53- pre . classList . add ( style . json ) ;
54- const code = document . createElement ( 'code' ) ;
55- code . textContent = data ;
56- pre . appendChild ( code ) ;
57- output . container . appendChild ( pre ) ;
51+ output . container . innerHTML = `<pre
52+ style="max-height: 300px; white-space: pre-wrap; tab-size: 2; overflow: auto;">
53+ <code style="display: block; white-space: pre-wrap;">${ data } </code>
54+ </pre>` ;
5855 }
5956}
6057
You can’t perform that action at this time.
0 commit comments