QuantEcon / QuantEcon/quantecon-book-theme

BUG: Math equations not rendering in search results

Open
#344 1 comment 0 reactions 0 assignees View on GitHub

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.