Skip to content

Commit 259af84

Browse files
committed
content type for jats
1 parent 3f7f7a7 commit 259af84

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/command/preview/preview.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ import {
2929
serveRedirect,
3030
} from "../../core/http.ts";
3131
import { HttpDevServer, httpDevServer } from "../../core/http-devserver.ts";
32-
import { isHtmlContent, isPdfContent, isTextContent } from "../../core/mime.ts";
32+
import {
33+
isHtmlContent,
34+
isPdfContent,
35+
isTextContent,
36+
kTextXml,
37+
} from "../../core/mime.ts";
3338
import { PromiseQueue } from "../../core/promise.ts";
3439
import { inputFilesDir } from "../../core/render.ts";
3540

@@ -678,6 +683,7 @@ function htmlFileRequestHandlerOptions(
678683
if (isJatsOutput(format.pandoc)) {
679684
const xml = await jatsPreviewXml(file, req);
680685
return {
686+
contentType: kTextXml,
681687
body: new TextEncoder().encode(xml),
682688
};
683689
} else {

0 commit comments

Comments
 (0)