Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/render/render-code-highlighting.test.ts
12921 views
1
/*
2
* render-r.test.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*
6
*/
7
8
import { fileLoader } from "../../utils.ts";
9
import { ensureHtmlElements } from "../../verify.ts";
10
import { testRender } from "./render.ts";
11
12
const doc = fileLoader("code-highlighting")(
13
"code-line-number-knitr.qmd",
14
"html",
15
);
16
testRender(doc.input, "html", false, [
17
ensureHtmlElements(
18
doc.output.outputPath,
19
["#with-numbering div.cell-code > pre.number-lines"],
20
["#no-numbering div.cell-code > pre.number-lines"],
21
),
22
]);
23
24