tag:support.markedapp.com,2011-09-11:/discussions/problems/3690-preview-does-not-work-if-first-character-is-a-numberMarked: Discussion 2016-08-11T03:29:44Ztag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T19:44:59Z2013-02-20T19:44:59ZPreview does not work if first character is a number<div><p>It's not the number, it's the colon. MultiMarkdown looks for
MMD-style metadata in the first lines before the first break. Your
is interpreted as such. If you put a blank line in above it, it
will solve the issue.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T19:46:45Z2013-02-20T19:46:45ZPreview does not work if first character is a number<div><p>Actually, wait. Is the Title: line part of the document as
well?</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T19:55:15Z2013-02-20T20:39:43ZPreview does not work if first character is a number<div><p>Yes, the Title line is the first line in the MMD document.</p></div>jason.verlytag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T20:37:43Z2013-02-20T20:39:43ZPreview does not work if first character is a number<div><p>I can get the same text to preview in Byword and MMD Composer.
I've attached the actual MMD doc to discussion.</p></div>jason.verlytag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T20:39:51Z2013-02-20T20:39:51ZPreview does not work if first character is a number<div><p>Yes, the 'Title' line is the first line in the document. I
attached a copy of the MMD doc to the discussion thread.</p></div>jason.verlytag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T20:56:33Z2013-02-20T20:56:33ZPreview does not work if first character is a number<div><p>Sorry, reading these over email and didn't see the attachment.
It looks like in your first example that the feature that figures
out where the last change to the text was may actually be breaking
the tag in the first line. Could you try opening the same document
and adding a line of text at the end, then saving and seeing how
the preview updates?</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T21:02:16Z2013-02-20T21:02:16ZPreview does not work if first character is a number<div><p>Added a line at the end of the MMD doc, clicked Save, and the
Marked showed the added text but didn't show the "9:42am - Email
from" line.</p></div>jason.verlytag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T21:20:55Z2013-02-20T21:20:55ZPreview does not work if first character is a number<div><p>Ok, figured out what's going on. Marked strips the MMD header
data (Title:) before rendering the preview to prevent MultiMarkdown
from generating a complete HTML document. This is leaving the date
line, though, which MMD is then recognizing as metadata because the
title line and line break have already been stripped. This issue is
solved for the next version.</p>
<p>I realize it's inconvenient and I apologize, but could you ---
for the time being --- reformat the documents such that the first
line after the existing metadata did not contain a colon in the
first 20 characters?</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/251380312013-02-20T21:34:49Z2013-02-20T21:34:49ZPreview does not work if first character is a number<div><p>No problem. I'll either do that or grab the HTML output from
Byword.</p></div>jason.verly