preview numbered list?
Completed1.0.0 (rel52)
if I create a list
19. text
20. more text
21. etc.
marked displays it (correctly I believe) but NVultra preview - renumbers it to
1. text
2. more text
3. etc
not serious - but a little annoying until I remembered Marked...
-
Neither Markdown nor MultiMarkdown supports enumerated lists starting at a number other than 1. Brett doesn't recall Marked ever supporting a feature like that either.
I understand that some other Markdown variants have the ability to change the numbering scheme for enumerated lists, but I don't think that makes sense from a logical standpoint (it implies that what you are really doing is splitting a list into multiple pieces.) I understand that some people want to do it, and that's fine. You can always use raw HTML (or LaTeX, or whatever) to do whatever you want.
At this time there are no plans for MultiMarkdown to support "wrong" numbering of lists.... ;)
0 -
well I can force it to "work" with 19) etc in a "fenced code block"
My use case is preparing notes about someone else's report
so whilst my notes should be sequential... :)
I'm quoting their references - which I wish to discuss - I've no idea what the USA equivalent of a Uk based QC is - but heavyweight lawyer is close... gotta to get the references right!
Please don't ask Brett to fix Marked however
0 -
Gotcha -- so to be pedantic, you're not creating an enumerated list, but a bulleted list of items that happen to reference specific numbers in another document. So something like this might be useful?:
* item 24 -- This statement is...
I understand the convenience of abusing an enumerated list for this purpose, but since a core tenet of Markdown was to try and focus more on semantic/structural meaning of documents, I think this example actually strengthens my argument that the current approach is correct.
As to whether Brett "fixes" Marked -- I get the same result in Marked that I do in nvUltra. Are you using a custom Markdown processor?
0 -
yes * item 24... was my first "workaround" - but looked kind of ugly with the bullet points, so i prefer the fenced code block - and I guess there are functional similarities between lawyers prose and programmers code ;)
PS - not arguing with design decision
nope bog standard marked indeed just updated to the very latest...
could send you the text, off-board, if you wished - but probably a distraction for both of us?
0 -
Up to you -- if you find yourself with an abundance of free time, I am always intrigued when things don't work as expected with my software, or (in this case) software that interfaces with my software (Marked). But you're happy with the current behavior you experience, and as far as I can tell in my tests, when I use Marked/Marked 2 it properly starts the list at #1. So we can also each continue in our own little worlds where we're each right, and the other person is wrong. ;)
0 -
Perhaps I can come back, when I reach that happy state. ATM there is a deadline...
0
Please sign in to leave a comment.
Comments
6 comments