File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ export function getInterpreterExtension(format: Cell["format"]): string {
18
18
case "tsv" :
19
19
case "png" :
20
20
case "gif" :
21
+ case "svg" :
21
22
case "webp" :
23
+ case "xml" :
22
24
return `.${ format } ` ;
23
25
default :
24
26
return ".bin" ;
@@ -32,6 +34,7 @@ export function getInterpreterMethod(format: Cell["format"]): string {
32
34
case "json" :
33
35
case "blob" :
34
36
case "text" :
37
+ case "xml" :
35
38
return `.${ format } ()` ;
36
39
case "html" :
37
40
return `.text().then((text) => html({raw: [text]}))` ;
@@ -40,6 +43,7 @@ export function getInterpreterMethod(format: Cell["format"]): string {
40
43
case "jpeg" :
41
44
case "png" :
42
45
case "gif" :
46
+ case "svg" :
43
47
case "webp" :
44
48
return ".image()" ;
45
49
case "csv" :
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ export interface CellSpec {
60
60
| "png"
61
61
| "arrow"
62
62
| "parquet"
63
- | "html" ;
63
+ | "html"
64
+ | "svg"
65
+ | "xml" ;
64
66
/** for SQL cells, the database to query; use var:<name> to refer to a variable */
65
67
database ?: string ;
66
68
/** for SQL cells, the oldest allowable age of the cached query result */
You can’t perform that action at this time.
0 commit comments