You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to display the following markdown text with latex equations and some are not being displayed:
Efficient training is therefore possible by optimizing random terms of $L$ with stochastic gradient descent. Further improvements come from variance reduction by rewriting $L$ (3) as:
$$\mathbb{E}_q \left [ D_{KL}(q(x_T|x_0) \| p(x_T)) + \sum_{t>1} D_{KL}(q(x_{t-1}|x_t, x_0) \| p_\theta (x_{t-1}|x_t)) - \log p\theta (x_0|x_1) \right ]$$
(See Appendix A for details. The labels on the terms are used in Section 3.) Equation (5) uses KL divergence to directly compare $p_\theta(x_{t-1}|x_t)$ against forward process posteriors, which are tractable when conditioned on $x_0$:
$$q(x_{t-1}|x_t, x_0) = \mathcal{N}(x_{t-1}; \bar{\mu}_t(x_t, x_0), \bar{\beta}_t\textbf{I}),$$$$\text{where} \hspace{5mm} \bar{\mu}_t(x_t, x_0) := \frac{\sqrt{\bar{\alpha}_{t-1}}\beta_t}{1 - \bar{\alpha}_t} x_0 + \frac{\sqrt{\alpha_t}(1 - \bar{\alpha}_{t-1})}{ 1 - \bar{\alpha}_t} x_t \hspace{5mm} \text{and} \hspace{5mm} \bar{\beta}_t := \frac{1 - \bar{\alpha}_{t-1}}{1 - \bar{\alpha}_t} \beta_t$$
Here is a print of how it's being rendered on my application:
This is a bug or I'm missing some configuration?
The text was updated successfully, but these errors were encountered:
Are you still facing the problem, or have you found a way to resolve it in the mean time? I've found the underlying cause, and could most definitely whip up a band-aid solution, but I'm really speechless on how everybody else managed to not run into this exact same unexpected behaviour.
When adding a markdown component to my page, as follows
Where parse() trims, decodes html (if applicable), parses emojis, parses markdown, and sanitizes (if applicable). markdownService.render() then renders Clipboard, Katex and Mermaid. Nowhere in this chain could I locate any TeX marker detection, as in the $-symbols, so markdown did what one would expect markdown to do. Here's a simple example:
Katex is rendered by calling window.renderMathInElement() on the root element, which then searches recursively for any math that's to be rendered. Of course, it won't render the mess from above, and the expression will stay visible as is.
One trick to solve this is to pad symbols which could be interpreted as formatting by the markdown renderer (*, _) with a space, but that's unacceptable in my opinion...
I have tried to display the following markdown text with latex equations and some are not being displayed:
Here is a print of how it's being rendered on my application:
This is a bug or I'm missing some configuration?
The text was updated successfully, but these errors were encountered: