Skip to content

Commit 88bd135

Browse files
committed
Apply the LaTeX update only to Twenty Twenty theme.
1 parent 532013d commit 88bd135

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

modules/latex.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ function latex_render( $latex, $fg, $bg, $s = 0 ) {
8787
$url = "//s0.wp.com/latex.php?latex=" . urlencode( $latex ) . "&bg=" . $bg . "&fg=" . $fg . "&s=" . $s;
8888
$url = esc_url( $url );
8989
$alt = str_replace( '\\', '\', esc_attr( $latex ) );
90-
$style = 'display: inline;';
9190

92-
return '<img src="' . $url . '" style="' . $style . '" alt="' . $alt . '" title="' . $alt . '" class="latex" />';
91+
return '<img src="' . $url . '" alt="' . $alt . '" title="' . $alt . '" class="latex" />';
9392
}
9493

9594
/**

modules/theme-tools/compat/twentytwenty.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,12 @@
249249
/* !important because the gif block styles are loaded in the footer after this file */
250250
margin: 1em auto !important;
251251
}
252+
253+
/**
254+
* Images
255+
*/
256+
257+
/* Beautiful Math */
258+
.entry-content img.latex {
259+
display: inline;
260+
}

0 commit comments

Comments
 (0)