Closed wyf88 closed 6 years ago
And I find another bug when I am reporting this bug... When I copy the whole comment above from the browser and paste to Typora (Windows), some of the sentences and the formula are pasted twice. If I paste it to other text editors (Notepad, SublimeText, Word), the result is correct.
BTW, the result of paste in Typora differs if I use different browsers. If I copy from Chrome and paste to Typora, it becomes: -====================================================== For example, the following two lines of formula:
For example, the following two lines of formula: $$\sigma^{-1} \sim \text{Gamma}(a{0\sigma}, b{0\sigma}),\quad \boldsymbol{\alpha} \sim N(\boldsymbol{\alpha}{0}, \boldsymbol{\Sigma}{0\alpha}),\ \boldsymbol{\mu} \sim N(\boldsymbol{\mu}{0}, \boldsymbol{\Sigma}{0\mu}),\quad \boldsymbol{\Phi}^{-1} \sim \text{Wishart}(\mathbf{R}{0}, \rho{0}),$$
For example, the following two lines of formula: $$\sigma^{-1} \sim \text{Gamma}(a{0\sigma}, b{0\sigma}),\quad \boldsymbol{\alpha} \sim N(\boldsymbol{\alpha}{0}, \boldsymbol{\Sigma}{0\alpha}),\ \boldsymbol{\mu} \sim N(\boldsymbol{\mu}{0}, \boldsymbol{\Sigma}{0\mu}),\quad \boldsymbol{\Phi}^{-1} \sim \text{Wishart}(\mathbf{R}{0}, \rho{0}),$$ is not centered properly (Mac & Windows, every version). This is the only case that I encountered. I have tried to modified the latex code to find a pattern for the display error, but without luck. Any idea why? Thanks. -======================================================
If I use IE, it becomes: -====================================================== Sometimes the formula is not centered properly · Issue #178 · typora/typora-issues · GitHub For example, the following two lines of formula:
Sometimes the formula is not centered properly · Issue #178 · typora/typora-issues · GitHub For example, the following two lines of formula: $$\sigma^{-1} \sim \text{Gamma}(a{0\sigma}, b{0\sigma}),\quad \boldsymbol{\alpha} \sim N(\boldsymbol{\alpha}{0}, \boldsymbol{\Sigma}{0\alpha}),\ \boldsymbol{\mu} \sim N(\boldsymbol{\mu}{0}, \boldsymbol{\Sigma}{0\mu}),\quad \boldsymbol{\Phi}^{-1} \sim \text{Wishart}(\mathbf{R}{0}, \rho{0}),$$
Sometimes the formula is not centered properly · Issue #178 · typora/typora-issues · GitHub For example, the following two lines of formula: $$\sigma^{-1} \sim \text{Gamma}(a{0\sigma}, b{0\sigma}),\quad \boldsymbol{\alpha} \sim N(\boldsymbol{\alpha}{0}, \boldsymbol{\Sigma}{0\alpha}),\ \boldsymbol{\mu} \sim N(\boldsymbol{\mu}{0}, \boldsymbol{\Sigma}{0\mu}),\quad \boldsymbol{\Phi}^{-1} \sim \text{Wishart}(\mathbf{R}{0}, \rho{0}),$$ is not centered properly (Mac & Windows, every version). This is the only case that I encountered. I have tried to modified the latex code to find a pattern for the display error, but without luck. Any idea why? Thanks. -======================================================
@wyf88
And I find another bug when I am reporting this bug... When I copy the whole comment above and paste to Typora (Windows), some of the sentences and the formula are pasted twice.
For this problem, I have seem for some times. It usually happen when the content your pasted contains multi paragraph and these paragraph begin with “Tab” or ...
Sorry for my bad English. :smiley:
@smallx Thanks for your feedback!
@wyf88 for the LaTeX part, currently display math should be wrapped with $$ and line break. For instance:
$$
\sigma^{-1} \sim \text{Gamma}(a_{0\sigma}, b_{0\sigma}),\quad \boldsymbol{\alpha} \sim N(\boldsymbol{\alpha}{0}, \boldsymbol{\Sigma}{0\alpha}),\\ \boldsymbol{\mu} \sim N(\boldsymbol{\mu}{0}, \boldsymbol{\Sigma}{0\mu}),\quad \boldsymbol{\Phi}^{-1} \sim \text{Wishart}(\mathbf{R}{0}, \rho{0}),
$$
Or else adding $ or deleting $ could cause block level change, and now I haven't good ideas to solve that scenario.
And meanwhile, $$some code$$ is treated as inline math, temporary.
For the paste bug, yes, I can reproduce it. We will fix this in future updates.
@abnerlee I see, thanks for the explanation!
Closing this since paste bug has been already fixed.
For example, the following two lines of formula: $$\sigma^{-1} \sim \text{Gamma}(a{0\sigma}, b{0\sigma}),\quad \boldsymbol{\alpha} \sim N(\boldsymbol{\alpha}{0}, \boldsymbol{\Sigma}{0\alpha}),\ \boldsymbol{\mu} \sim N(\boldsymbol{\mu}{0}, \boldsymbol{\Sigma}{0\mu}),\quad \boldsymbol{\Phi}^{-1} \sim \text{Wishart}(\mathbf{R}{0}, \rho{0}),$$ is not centered properly (Mac & Windows, every version). This is the only case that I encountered. I have tried to modified the latex code to find a pattern for the display error, but without luck. Any idea why? Thanks.