From ec1b3d45041f1085c4005147463ad53aed9fff65 Mon Sep 17 00:00:00 2001 From: luisjcamargo Date: Sat, 1 Jun 2024 02:30:27 -0600 Subject: [PATCH] render latex on home featured tasks list items description --- src/components/FeaturedTask.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/FeaturedTask.js b/src/components/FeaturedTask.js index 57d5ea1..6ce7dc5 100644 --- a/src/components/FeaturedTask.js +++ b/src/components/FeaturedTask.js @@ -2,6 +2,7 @@ import { useEffect, useState } from 'react' import axios from 'axios' import { Link } from 'react-router-dom' import { library } from '@fortawesome/fontawesome-svg-core' +import { renderLatex } from './RenderLatex' import { faHeart, faExternalLinkAlt, faChartLine } from '@fortawesome/free-solid-svg-icons' import config from '../config' import SotaChart from './SotaChart' @@ -83,7 +84,7 @@ const FeaturedTask = (props) => { (QED-C)} - {description} + {description ? renderLatex(description) : ""}