tag:support.markedapp.com,2011-09-11:/discussions/problems/159355-markdown-table-formattingMarked: Discussion 2020-09-24T14:26:44Ztag:support.markedapp.com,2011-09-11:Comment/486367352020-09-16T21:27:32Z2020-09-16T21:46:20ZMarkdown table formatting<div><p>Marked 2 renders the attached Markdown table incorrectly.</p>
<p>It fails to recognize the line that begins with date 2020.09.08 as a new line, instead including it in the "siding" field for the prior record. This is apparently due to the presence of a quotation mark in the "Siding" field for successive records (8/30 and 9/8). If either quotation mark is removed, or if an extra line feed is added to the 8/30 line, the table renders correctly.</p>
<p>I'm not aware of any special setting regarding quotation marks.</p></div>dgmagstag:support.markedapp.com,2011-09-11:Comment/486367352020-09-17T20:46:47Z2020-09-17T20:46:47ZMarkdown table formatting<div><p>I'm not seeing any strange rendering on your example file using either<br>
of the built-in processors. So first, are you using a custom processor.<br>
Second, do you have MathJax or KaTeX enabled, and lastly, could you<br>
include the output of Help->Report an Issue in your response to answer a<br>
few more of these questions for me?</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/486367352020-09-17T21:23:06Z2020-09-17T21:23:06ZMarkdown table formatting<div><p>Sorry, Brett... I thought I'd included the diagnostic report with my<br>
posting.</p>
<ul>
<li>Default MathJax config is TeX-AMS-MML_HTMLorMML.</li>
<li>I've attached my notes (_about_bugReport-20200916.md), which includes the diagnostic report.<br></li>
<li>I've also attached the Markdown source file (MarkdownTable.md), and the HTML file as rendered by Marked 2 (MarkdownTable.html).</li>
</ul>
<p>Hope this provides an answer.</p>
<p>Regards,</p>
<p>David Magnuson<br>
<a href="mailto:dgmags@gmail.com">dgmags@gmail.com</a></p></div>dgmagstag:support.markedapp.com,2011-09-11:Comment/486367352020-09-17T21:51:35Z2020-09-17T21:51:35ZMarkdown table formatting<div><p>Ok, so the issue is related to the double quotes, and is the result of<br>
the option "generate typographically correct quotes and punctuation"<br>
under Preferences->Style. Disabling this feature fixes the issue. I'm<br>
unsure why MMD is messing this particular syntax up, will have to look<br>
into that further.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/486367352020-09-17T21:54:09Z2020-09-17T21:54:09ZMarkdown table formatting<div><p>One other option if you don't want to disable that option is to escape<br>
the quotes by putting a backslash before them, e.g. 1/2\". Doing this to<br>
one or both of the offending quotes will break the pairing and fix<br>
rendering.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/486367352020-09-17T21:59:34Z2020-09-17T21:59:34ZMarkdown table formatting<div><p>Good to know.</p>
<p>So is this related to MathJax?</p>
<p>I generally have a sense of when to escape a character in Markdown syntax.<br>
But a quotation mark didn’t raise a flag for me.</p></div>dgmagstag:support.markedapp.com,2011-09-11:Comment/486367352020-09-17T22:24:27Z2020-09-17T22:24:27ZMarkdown table formatting<div><p>Nope, nothing to do with MathJax (although some of the paired dollar signs in the table may have their own rendering issues). It appears to be related to the "SmartyPants" processing done by MultiMarkdown to convert paired quotes to their "curly" versions (among other things). For some reason it's pairing up quotes across two different lines and then failing to correctly render what's between them. In the case of a foot/inch demarcation it shouldn't be doing anything at all, but something is tripping it up. I'll look into that further, but in the meantime backlash escaping won't hurt anything for the vast majority of markdown processors.</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/486367352020-09-17T23:20:58Z2020-09-17T23:20:58ZMarkdown table formatting<div><p>Thanks for the help.</p>
<p>I enjoy your work.</p></div>dgmags