There is nothing wrong with that numbered list. The numbers in the Markdown source don’t matter. The rendering converts to the expected numbering. Also, the approach of using one number while editing makes it simpler to rearrange elements. You don’t have the compulsion to stop and manually renumber anything.
BLUEFROG beat me to it – the syntax is perfectly valid.
But you could check out Brett Terpstra’s Markdown Service Tools, which includes md - Lists - Numbered List. That does increment numbers in the plain text source. And it also works outside of DEVONthink.
I think BLUEFROG used the keyboard shortcut for moving paragraphs up/down. Either Command-Control-Arrow Up/Down or Control-Shift-Arrow Up/Down. (He might have used a mouse click to focus the editor.)
The screencast shows I am using the arrow keys to navigate up and down the Markdown list then using Control-Command-Up or Down arrows to shift lines in the list.
We’re talking completely past each other I thought you were referring to behaviour in DEVONthink, not your web browser.
You’re not clicking any words in any column. You are clicking on a GIF in your browser. It doesn’t matter where you click it – in terms of user interaction all of it is the same object.
BLUEFROG shared an animated GIF. An animated GIF can either be encoded to play once, to loop forever, or to loop a certain number of times. It looks like this one is encoded to play once. After it’s done playing, clicking the GIF doesn’t play it again, even though Discourse shows me a play button. Instead it just jumps between the first and last frame.
To play it again, you need to reload the page. You could also right-click and download the GIF or open it in a new tab/window.
I think I’d better shut up and not waste any more of anyone’s time with this. I’ll just accept that if I see a list in a raw file with the number one at the start of each line that it’s just fine and will appear as it should when I preview or export it.
Thanks for the help with this which I’m just going to put down to my ignorance
If a student in my Python class turned in an assignment to “convert to numbered list”, but all the numbers were “1.”, that student would not get full points.
This is about utilizing the native rendering of Markdown in a simple and efficient manner. There is no requirement to use consecutive numbers in the Markdown source as the CSS handles the actual rendering. Also, if things are consecutively numbered in the source and someone wants to shift items up and down in the list, they feel compelled to also change the numbering. That’s merely psychological and not required for rendering. So this approach gives the user the freedom to arbitrarily shift line items, knowing the finished result will retain proper numbering.
If I gave this assignment, generate a Markdown document showing an ordered list – via Python, JavaScript, AppleScript, whatever – I would give extra credit to anyone who came up with this simple and elegant approach as it shows they can think around corners.
Any of the line items in the list can be easily shifted to a new position and the numbering is automatically updated. No need for the Markdown to conform to the rendered view. Concentrate on content and position of the line item and you get the numbering for free.
Maybe you should take a step back and familiarize yourself with Markdown’s syntax and function.
The “left hand” in the image is the edit view. The right hand view is the preview, ie HTML rendered from the Markdown text using the CSS that’s either predefined by DT or provided by the user.
To get sub-lists, you indent by two or more spaces in the editing process. What you get in preview is, again, determined by tge CSS. There’s no obligation to have any indentation in the rendered HTML at all. Butt if you have it, it has nothing to do with tabs.
No no, it’s all good. But I can’t tell for sure if the miscommunication was cleared up?
As chrillek says, maybe you should read up on markdown a bit. It was originally created as an easier way to write HTML.
The preview pane shows the markdown as rendered HTML. How a HTML document is rendered is determined by a style sheet (CSS).
A “numbered list” produces the HTML element <ol>, ordered list. An ordered list has a counter that is automatically incremented by each list item. The list marker is usually styled as a number corresponding to the counter, but it can be styled in many different ways.
Markdown was created by John Gruber. His webpage about it is a good place to start: