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 {
1818 case "tsv" :
1919 case "png" :
2020 case "gif" :
21+ case "svg" :
2122 case "webp" :
23+ case "xml" :
2224 return `.${ format } ` ;
2325 default :
2426 return ".bin" ;
@@ -32,6 +34,7 @@ export function getInterpreterMethod(format: Cell["format"]): string {
3234 case "json" :
3335 case "blob" :
3436 case "text" :
37+ case "xml" :
3538 return `.${ format } ()` ;
3639 case "html" :
3740 return `.text().then((text) => html({raw: [text]}))` ;
@@ -40,6 +43,7 @@ export function getInterpreterMethod(format: Cell["format"]): string {
4043 case "jpeg" :
4144 case "png" :
4245 case "gif" :
46+ case "svg" :
4347 case "webp" :
4448 return ".image()" ;
4549 case "csv" :
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ export interface CellSpec {
6060 | "png"
6161 | "arrow"
6262 | "parquet"
63- | "html" ;
63+ | "html"
64+ | "svg"
65+ | "xml" ;
6466 /** for SQL cells, the database to query; use var:<name> to refer to a variable */
6567 database ?: string ;
6668 /** for SQL cells, the oldest allowable age of the cached query result */
You can’t perform that action at this time.
0 commit comments