Skip to content

Commit

Permalink
[MSKINS-245] Add code highlighting class to every <pre><code>
Browse files Browse the repository at this point in the history
combination

Don't rely on custom div classes surrounding those.
  • Loading branch information
kwin committed Mar 15, 2024
1 parent 7cb683f commit e9c224a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/maven/site.vm
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
#* *##set( $sourceStyle = "prettyprint" )
#* *##end
##
#* *#$bodyContent.replaceAll( '<div class="verbatim source">(\r?\n)?<pre>', '<div class="verbatim source"><pre class="' + $sourceStyle + '">' ).replaceAll( 'class="bodyTable"', 'class="table table-striped"' ).replaceAll( 'class="bodyTable bodyTableBorder"', 'class="table table-bordered table-striped"' )
#* *#$bodyContent.replaceAll( '<pre><code>', '<pre class="' + $sourceStyle + '"><code>' ).replaceAll( 'class="bodyTable"', 'class="table table-striped"' ).replaceAll( 'class="bodyTable bodyTableBorder"', 'class="table table-bordered table-striped"' )
</main>
#* *##if( $sideBarEnabled )
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/css/maven-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ section > p,
section > dt,
section > dl,
section > table.table,
section > div.verbatim {
section > pre {
margin-right: 7px;
margin-left: 7px;
}
Expand Down

0 comments on commit e9c224a

Please sign in to comment.