From ce5df837f5f6ed57f9e9f85439ee9a40ebf234dc Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 04 Dec 2022 05:03:12 +0000
Subject: [PATCH] feat: latex in search results

---
 assets/js/popover.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/assets/js/popover.js b/assets/js/popover.js
index 29104b9..ca13f9a 100644
--- a/assets/js/popover.js
+++ b/assets/js/popover.js
@@ -5,7 +5,7 @@
   return template.content.firstChild
 }
 
-function initPopover(baseURL, useContextualBacklinks, renderLatex) {
+function initPopover(baseURL, useContextualBacklinks) {
   const basePath = baseURL.replace(window.location.origin, "")
   fetchData.then(({ content }) => {
     const links = [...document.getElementsByClassName("internal-link")]
@@ -42,7 +42,7 @@
 
         if (el) {
           li.appendChild(el)
-          if (renderLatex) {
+          if (LATEX_ENABLED) {
             renderMathInElement(el, {
               delimiters: [
                 { left: '$$', right: '$$', display: false },

--
Gitblit v1.10.0