QuantEcon / QuantEcon/quantecon-book-theme
BUG: Math equations not rendering in search results
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 56
- Forks
- 24
- Avg merge
- 4h 33m
- Merged PRs (30d)
- 4
Description
Description
Math equations are not being rendered properly in search results. They appear as raw LaTeX code instead of formatted equations.
Example
From the lecture "Optimal Savings II: Numerical Cake Eating", the search result shows:
...[ You might like to review the details in Optimal Savings I: Cake Eating before we start. Recall in particular that the Bellman equation is (52.1)\[v(x) = \max_{0\leq c \leq x} \{u(c) + \beta v(x-c)\} \quad \text{for all } x \geq 0.\] wher...
The LaTeX code should be rendered as a proper mathematical equation instead of displaying the raw markup.
Expected Behavior
Math equations in search results should be rendered as formatted mathematical expressions, similar to how they appear in the main content.
Additional Context
- This was observed while reviewing the quantecon-book-theme 0.15.0 update
- See attached screenshot in related PR: https://github.com/QuantEcon/lecture-python.myst/pull/758
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named in the issue. Reproduce the search result using the cited lecture example, then trace how search-result content differs from the main content's math rendering and review related PR 758. Done means the LaTeX expression appears as a formatted equation in search results rather than raw markup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter, latex
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100