I have a Markdown file that has numbered lists in it that look like this:
1. list item 1
1. list item 2
1. sublist item 1
1. sublist item 2
1. list item 3
It's rendered as:
- list item 1
- list item 2
- sublist item 1
- sublist item 2
- list item 3
This is a great feature of Markdown. However, the original .md file still contains the numbered list of all ones (“1.”), making it harder to read the raw Markdown in the .md file.
Is there a tool that will take a Markdown file and output the same Markdown file with the lists renumbered? If not, is there a Markdown compiler that exposes the renumbering portion of the process?
Edit #1
Here's my intended workflow.
Create file.md with the following contents:
1. list item 1
1. list item 2
1. list item 3
Run marked file.md -o file.html. Then I have file.html which has the following contents:
<ol>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
</ol>
... and now I see where I made a mistake. I made the assumption that the Markdown compiler was doing the renumbering. Instead, it outputs <li> elements and leaves the job to the browser. Whoops.