Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply the LaTeX update only to Twenty Twenty theme.
  • Loading branch information
dstein64 committed Feb 19, 2020
commit 88bd1351b91f5990828706acf1042c65c3470f54
3 changes: 1 addition & 2 deletions modules/latex.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ function latex_render( $latex, $fg, $bg, $s = 0 ) {
$url = "//s0.wp.com/latex.php?latex=" . urlencode( $latex ) . "&bg=" . $bg . "&fg=" . $fg . "&s=" . $s;
$url = esc_url( $url );
$alt = str_replace( '\\', '\', esc_attr( $latex ) );
$style = 'display: inline;';

return '<img src="' . $url . '" style="' . $style . '" alt="' . $alt . '" title="' . $alt . '" class="latex" />';
return '<img src="' . $url . '" alt="' . $alt . '" title="' . $alt . '" class="latex" />';
}

/**
Expand Down
9 changes: 9 additions & 0 deletions modules/theme-tools/compat/twentytwenty.css
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,12 @@
/* !important because the gif block styles are loaded in the footer after this file */
margin: 1em auto !important;
}

/**
* Images
*/

/* Beautiful Math */
.entry-content img.latex {
display: inline;
}