tag:support.markedapp.com,2011-09-11:/discussions/problems/149489-preview-math-formula-from-ulysses-quick-exportMarked: Discussion 2018-11-01T13:22:52Ztag:support.markedapp.com,2011-09-11:Comment/463971262018-10-31T05:59:12Z2018-11-01T11:52:39ZPreview math formula from Ulysses quick export<div><p>attached are the screenshot</p></div>qiangqibingtag:support.markedapp.com,2011-09-11:Comment/463971262018-10-31T13:01:24Z2018-11-01T11:52:39ZPreview math formula from Ulysses quick export<div><p>First, you don't need to load MathJax, it's built into Marked and can be enabled via Preferences->Style. You can also customize the configuration options there, but the config you have in your script is already default.</p>
<p>If only the last item is not rendering, could you paste the complete text of the Ulysses sheet here so I can test?</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/463971262018-11-01T06:23:56Z2018-11-01T11:52:39ZPreview math formula from Ulysses quick export<div><p>Hi Brett,</p>
<p>Thanks for your reply.</p>
<p>Below is the text of the Ulysses sheet. some math formulas can display correctly but some are not.</p>
<p>Problems in Prove the Convergence</p>
<p>We have the following system<br>
~$$y_k=\gamma_{k-1}+\theta_{k-1}$$~ where ~$\gamma_{k-1}\sim \mathcal{N}(0,U_{k-1})$~ and ~$\theta_{k-1} \sim \mathcal{N}(0, W_{k-1}) $~. Moreover ~$\gamma_k$~ is independent with ~$\theta_{k}$~ and ~$W_k$~ converges to ~$W$~.</p>
<p>We construct the following sample mean to estimate ~$W_t$~ and want to prove its convergence to ~$W$~</p>
<p>~$$\frac{1}{k+1}\sum_{i=0}^k (y_iy_i'-U_{i-1})$$~</p>
<p>The problem is that the measurement ~$y_k$~ is correlated and therefore we have to utilize the Strong Law of Large Numbers for correlated random variables, which has constraints on bound of the second moment of ~$y_iy_i'$~, and it is difficult to show the boundedness.</p></div>#XU LIANG#tag:support.markedapp.com,2011-09-11:Comment/463971262018-11-01T12:12:44Z2018-11-01T12:12:44ZPreview math formula from Ulysses quick export<div><p>I assume you're using the Discount (GFM) processor? The equation as written (with one minor change, removing the space before the closing $ in the third equation) renders completely in MultiMarkdown. It appears to be an issue with the Discount processor handling underscores and inserting markup (em tags) that break the MathJax processor.</p>
<p>There is a way to escape these properly for GFM, though I'm not well-versed enough in these formulae to detail it, unfortunately. You'd need to add backslashes before underscores, but that on its own doesn't completely fix it in my testing. It might take some research on both of our parts to get it working with GFM.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/463971262018-11-01T12:14:46Z2018-11-01T12:14:46ZPreview math formula from Ulysses quick export<div><p>Here's the preview in Marked using Ulysses quick export and the MultiMarkdown processor:</p>
<p><img src="http://ckyp.us/9ACJuQ+" alt=""></p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/463971262018-11-01T12:43:34Z2018-11-01T12:43:34ZPreview math formula from Ulysses quick export<div><p>I think I've found the issue. Working to fix it now, I don't think it will require any changes on your end, I'll keep you posted.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/463971262018-11-01T13:22:52Z2018-11-01T13:22:52ZPreview math formula from Ulysses quick export<div><p>Ok, I think I narrowed down the issue. I've fixed it in this test build, if you'd like to try it out and let me know if it solves the issue:</p>
<p><a href="http://asssets.markedapp.com.s3.amazonaws.com/Marked2.5.27-pre.zip">http://asssets.markedapp.com.s3.amazonaws.com/Marked2.5.27-pre.zip</a></p></div>Brett