Skip to content

Commit

Permalink
records search: render Mathjax in the results list
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova committed Sep 30, 2024
1 parent 947f49f commit f41b47b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import { Trans } from "react-i18next";
export const SearchResults = ({ paginationOptions, currentResultsState }) => {
const { total } = currentResultsState.data;

const handleMathjaxCallback = () => {
window.renderMathJaxEmitter?.emit("renderMathJax");
};

return (
total && (
<Grid>
Expand All @@ -24,7 +28,7 @@ export const SearchResults = ({ paginationOptions, currentResultsState }) => {
<Grid>
<Grid.Row>
<Grid.Column>
<ResultsList />
<ResultsList onResultsRendered={handleMathjaxCallback} />
</Grid.Column>
</Grid.Row>
</Grid>
Expand Down

0 comments on commit f41b47b

Please sign in to comment.