package convert import _ "embed" // Pandoc HTML template and its companion stylesheet, copied verbatim from // /pandoc/viewer-template.html and /pandoc/custom.css. The runner writes // these to a host scratch dir on each conversion and bind-mounts them // read-only into the container so pandoc can `--template` against them. // // Refresh: when /pandoc/viewer-template.html changes, copy the new bytes // here. There's no symlink because go:embed paths must resolve under the // containing module — and we want the binary to ship the bytes verbatim, // not depend on the source tree at runtime. //go:embed viewer-template.html var viewerTemplate []byte //go:embed custom.css var customCSS []byte