From b8819b49385f1ff42f0eb018ec6beac308c1bc1c Mon Sep 17 00:00:00 2001 From: Anika Churilova Date: Tue, 20 Aug 2024 10:18:50 +0200 Subject: [PATCH] timeline feed: render mathematical content in the request comments * closes https://github.com/CERNDocumentServer/cds-rdm/issues/133 --- .../js/invenio_requests/timeline/TimelineFeed.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/invenio_requests/assets/semantic-ui/js/invenio_requests/timeline/TimelineFeed.js b/invenio_requests/assets/semantic-ui/js/invenio_requests/timeline/TimelineFeed.js index 0bd617e9..c6ec8e8b 100644 --- a/invenio_requests/assets/semantic-ui/js/invenio_requests/timeline/TimelineFeed.js +++ b/invenio_requests/assets/semantic-ui/js/invenio_requests/timeline/TimelineFeed.js @@ -31,6 +31,12 @@ class TimelineFeed extends Component { getTimelineWithRefresh(); } + componentDidUpdate() { + if (window.MathJax) { + window.MathJax.typeset(); + } + } + componentWillUnmount() { const { timelineStopRefresh } = this.props; timelineStopRefresh();