Skip to content

Commit af852a6

Browse files
committed
Provide more specific selector
RevealJS slides merge the reveal format extras over the top of htmlformatextras (so reveal can override those). As a result, the html format extras CSS/js appears at the top of the document head rather than near the bottom. In this case, that meant that a specific text-highlight css selector which worked ok in HTML (because the css was at the bottom of the head, overriding inline default styles) did not work in reveal, since it appeared above the inline default styles. This fix doesn’t resolve that larger issue, but does dodge this specific issue by providing a more specific selector.
1 parent d5203c6 commit af852a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/command/render/pandoc-html.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ function generateThemeCssClasses(
369369
lines.push("}\n");
370370
} else {
371371
[
372+
"pre > code.sourceCode > span",
372373
"code span",
373374
"code.sourceCode > span",
374375
"div.sourceCode,\ndiv.sourceCode pre.sourceCode",

0 commit comments

Comments
 (0)