tag:support.markedapp.com,2011-09-11:/discussions/problems/154777-preview-and-print-problems-with-enumeration-of-ordered-listsMarked: Discussion 2019-11-09T07:24:58Ztag:support.markedapp.com,2011-09-11:Comment/475378592019-08-19T12:52:03Z2019-11-09T07:24:57ZPreview and print problems with enumeration of ordered lists<div><p>Version 2.5.33 (974) on High Sierra 10.13.6</p>
<p>I am using markdown to make quizzes leverging the markdown todos <code>- [ ]</code> and <code><br /></code> code for short answer questions. The numbering is a bit odd in Marked preview, but turns out fine on print. It switches to bullets (see screenshot).</p>
<p>The other issue I have is that when I use a <code>---</code> to create a pagebreak for print, it restarts the numbering. I would prefer if it didn't for this use case. See sample doc and PDF output.</p></div>asdfhljtag:support.markedapp.com,2011-09-11:Comment/475378592019-08-19T14:33:29Z2019-11-09T07:24:56ZPreview and print problems with enumeration of ordered lists<div><p>As far as the bullets in the preview, that's odd and I'll need to look into it.</p>
<p>The hr as page break is still an HR, and will correctly reset a list. You may be able to avoid that by instead using the WordPress syntax <!--more--> for the page break.</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/475378592019-08-20T16:46:36Z2019-11-09T07:24:56ZPreview and print problems with enumeration of ordered lists<div><p>Ok, I had a chance to do some testing. Regarding the bullets in the preview, that's a change I'll need to make to the internal CSS, but it comes down to Marked forcing a bullet on anything containing a task list. I can't recall at this point if I did this because it's the way GitHub handled it, or if I just made a mistake. I'll look into it. In the meantime, if you want, you can fix it by going to Preferences->Style->Additional CSS, clicking the Edit CSS button, and inserting:</p>
<pre>
<code>ol li.task-list { list-style-type: decimal; }</code>
</pre>
<p>I also tested alternative page break syntax, but anything that creates an element outside of the list is going to cause a new numbered list to start. That's just the way Markdown works, not something Marked is going to work around.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/475378592019-08-20T17:19:41Z2019-11-09T07:24:56ZPreview and print problems with enumeration of ordered lists<div><p>Ok thanks for the support!</p></div>asdfhlj