tag:support.markedapp.com,2011-09-11:/discussions/problems/156643-scrivener-mathMarked: Discussion 2020-01-28T17:09:52Ztag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T15:12:44Z2020-01-24T15:12:44Zscrivener math<div><p>Try using a double backslash (\to).</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T15:30:54Z2020-01-24T16:11:30Zscrivener math<div><p>Thanks, Brett!</p>
<p>Well, that "fixes" this issue. But when I export the whole document to markdown or plain text and generate a pdf with pandoc, I get garbage.</p>
<p>Also slightly more complicated things don't work either:</p>
<pre>
<code>$$
\begin{array}{rl}
1. & p \\
2. & p \to q \\
\hline
\therefore & q
\end{array}
$$</code>
</pre>
<p>becomes</p>
<pre>
<code><p>$$egin{array}{rl}</p>
<pre><code> 1. &amp; p \
2. &amp; p o q \
\hline
herefore &amp; q
</code></pre>
<p>\end{array}$$</p></code>
</pre>
<p>and escaping the backslashes like this<br></p>
<pre>
<code>$$
\begin{array}{rl}
1. & p \\
2. & p \to q \\
\hline
\therefore & q
\end{array}
$$</code>
</pre>
results in
<pre>
<code><p>$$\begin{array}{rl}</p>
<pre><code> 1. &amp; p \\
2. &amp; p o q \\
\hline
\therefore &amp; q
</code></pre>
<p>\end{array}$$</p></code>
</pre></div>dgtag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T15:33:09Z2020-01-24T15:55:25Zscrivener math<div><p>Can I delete this?</p></div>dgtag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T16:16:09Z2020-01-24T16:16:09Zscrivener math<div><p>Looks like you did delete one post successfully, are you trying to delete others and having issues?</p>
<p>As far as the more complicated examples... I'll need to examine the Scrivener parser in Marked, but I believe the issue with single escapes (backslashes) being lost is on Scrivener's side, which then gets more frustrating because doubling them breaks the regular MMD export. Like I said, I need to reexamine to confirm this is the case.</p>
<p>In the second example, is the indentation needed? (I am not well versed in MathJax/LaTeX.) It seems to me that the code block will always be inserted in the middle of it due to the indentation, regardless of what editor that's coming from. Am I incorrect?</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T19:52:28Z2020-01-24T19:52:31Zscrivener math<div><p>I can't get the array to render correctly no matter how the indentation. And no, it seems to be a Scrivener only issue. The same code in Sublime Text renders flawlessly.</p></div>dgtag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T19:58:03Z2020-01-24T19:58:03Zscrivener math<div><p>Thanks for the info. I'll continue testing. I can't guarantee any<br>
timeline for a solution at this point, apologies for that.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T20:02:37Z2020-01-24T20:02:38Zscrivener math<div><p>Thanks Brett! I can always export from Scrivener and pipe through marked then. But I kind of got used to the live preview... Hope you can figure out how to get it working.</p></div>dgtag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T21:21:11Z2020-01-24T21:21:11Zscrivener math<div><p>I found a limited fix. I’m going to try to explain its scope a bit and then get an update out.</p>
<ul>
<li>Brett</li>
</ul></div>Bretttag:support.markedapp.com,2011-09-11:Comment/480351222020-01-24T21:22:29Z2020-01-24T21:22:30Zscrivener math<div><p>Great! Looking forward to it</p></div>dgtag:support.markedapp.com,2011-09-11:Comment/480351222020-01-28T17:04:15Z2020-01-28T17:04:15Zscrivener math<div><p>The release with the fix is now available for direct customers (Setapp and MAS versions pending review). If you have the direct version, please update and let me know if the issue is resolved for you.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/480351222020-01-28T17:08:37Z2020-01-28T17:08:39Zscrivener math<div><p>Yes! It works. Thank you very much</p></div>dgtag:support.markedapp.com,2011-09-11:Comment/480351222020-01-28T17:09:51Z2020-01-28T17:09:51Zscrivener math<div><p>Excellent, thanks for your help in debugging this!</p>
<p>-Brett</p></div>Brett