Math: Formula pasted in callout don't render properly

Pasting a formula in a callout block is misrendered on Bear on macOs (Version 2.5.1 (13605)).

I opened the callout block, typed some text, then opened the math block with the usual $$. Then pasted as plain text the latex code, however this gets rendered as the following:

After some small digging I noticed that pasted text is not prefixed with the angle bracket followed by a space > . And in a separate text editor I was able to fix that by manually prefixing the pasted text, so that it renders as expected.

  > [!NOTE] Functions with this equality are called *analytic*, however this terminology is not important in our case.
  > 
  > $$
  > \begin{align}
- 
- \textcolor{orange}{f(x)}
- 
- \underbrace{ = }_{}
- 
-   \sum_{\textcolor{teal}{k}=0}^{\textcolor{red}{\infty}}{
-     
-     \textcolor{teal}{ \frac{f^{(k)(x_0)}}{k!} }
-     
-     \textcolor{darkgreen}{(x-x_0)^\textcolor{teal}{k}}
-   }
- 
- \\
- 
- \substack{
-   \text{equality is only true for the functions } \\ 
-   \text{so-called analytic functions}
- }
- \end{align}
+ > 
+ > \textcolor{orange}{f(x)}
+ > 
+ > \underbrace{ = }_{}
+ > 
+ >   \sum_{\textcolor{teal}{k}=0}^{\textcolor{red}{\infty}}{
+ >     
+ >     \textcolor{teal}{ \frac{f^{(k)(x_0)}}{k!} }
+ >     
+ >     \textcolor{darkgreen}{(x-x_0)^\textcolor{teal}{k}}
+ >   }
+ > 
+ > \\
+ > 
+ > \substack{
+ >   \text{equality is only true for the functions } \\ 
+ >   \text{so-called analytic functions}
+ > }
+ > \end{align}
  > $$

Proper render:

Also typing $$ in a callout block, actually escapes the first $:

Going on the char we see the backslash :

That is right, pasting inside block quotes and callouts could be smarter, and it is indeed on our long list of improvements we want to do.

I don’t remember the details right now, but this looks like a bug to me. I will investigate.

1 Like