Skip to content

Commit

Permalink
Fix unrendered LaTeX in table description
Browse files Browse the repository at this point in the history
Now triggers rendering of LaTeX in record table descriptions as this was bugged and only occurred when the full table is loaded. Mentioned in issue #756
  • Loading branch information
ItIsJordan committed Feb 28, 2024
1 parent 95b416d commit 650154a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hepdata/modules/records/assets/js/hepdata_tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ HEPDATA.table_renderer = {
HEPDATA.table_renderer.render_related_dois(table_data.related_tables, "#related-tables");
HEPDATA.table_renderer.render_related_dois(table_data.related_to_this, "#related-to-this-tables");
HEPDATA.table_renderer.render_keywords(table_data.keywords, "#table_keywords");
// Render any LaTeX in the table description element.
HEPDATA.typeset($("#table_description").get());
$("#hepdata_table_loader").addClass("hidden");
$("#hepdata_table_content").removeClass("hidden");
// We also need to clear the figure
Expand Down

0 comments on commit 650154a

Please sign in to comment.