Skip to content

Commit

Permalink
Fix line numbers in source code with reveal.js
Browse files Browse the repository at this point in the history
We need "overflow: visible" for these to work, and reveal's
default css disables this.  So this modifies the default
template to add this.

Closes #7634.  Thanks to @cderv for diagnosing the issue.
  • Loading branch information
jgm committed Oct 21, 2021
1 parent 0a93acf commit fcd3384
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/templates/default.revealjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ $endif$
<link rel="stylesheet" href="$revealjs-url$/dist/reset.css">
<link rel="stylesheet" href="$revealjs-url$/dist/reveal.css">
<style>
.reveal .sourceCode { /* see #7635 */
overflow: visible;
}
$styles.html()$
</style>
$if(theme)$
Expand Down

0 comments on commit fcd3384

Please sign in to comment.