Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/format/email/format-email.ts
6451 views
1
import { mergeConfigs } from "../../core/config.ts";
2
import { registerWriterFormatHandler } from "../format-handlers.ts";
3
import { htmlFormat } from "../html/format-html.ts";
4
5
export function emailFormat() {
6
return mergeConfigs(
7
htmlFormat(7, 5),
8
);
9
}
10
11
registerWriterFormatHandler((format) => {
12
switch (format) {
13
case "email":
14
return {
15
format: emailFormat(),
16
pandocTo: "html",
17
};
18
}
19
});
20
21