Is there a way to fix the numbering of a numbered list in Markdown? [closed]





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







2















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:





  1. list item 1

  2. list item 2


    1. sublist item 1

    2. sublist item 2



  3. 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.










share|improve this question















closed as off-topic by DavidPostill Feb 4 at 16:26


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – DavidPostill

If this question can be reworded to fit the rules in the help center, please edit the question.

















  • What is generating these Markdown files? Markdown is simply following it's internal logic to assign the correct numbers in the rendered output, but it seems to me your real problem is the source.

    – music2myear
    Jan 30 at 17:49











  • Yeah I don't expect a markdown compiler to edit the source to fix the numbering but I figure there's a tool or API that exposes the renumbering logic so I can fix my Markdown source file.

    – Andrew Keeton
    Jan 30 at 17:57











  • Most markdown tools I've used, ranging from wikis to WYSIWYGs, have interpreted the markdown in exactly the same way demonstrated here. I'm guessing that means this is the "standard". There are ways to reset your OL counts, but I cannot think of them off the top of my head. I'd imagine that is documented somewhere.

    – music2myear
    Jan 30 at 18:05











  • Because of this, it's still not super clear what you are actually asking. It appears to me that Markdown is functioning the way it is supposed to, and your own tools you use for reading the .md file are the ones with the problem. Further, SuperUser does not recommend software nor do we entertain requests for software recommendations. If you could edit your question to remove the references to requesting software recommendations and instead focusing on getting a solution, and clarify what you're actually trying to accomplish, we may be able to find you a good answer.

    – music2myear
    Jan 30 at 18:08


















2















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:





  1. list item 1

  2. list item 2


    1. sublist item 1

    2. sublist item 2



  3. 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.










share|improve this question















closed as off-topic by DavidPostill Feb 4 at 16:26


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – DavidPostill

If this question can be reworded to fit the rules in the help center, please edit the question.

















  • What is generating these Markdown files? Markdown is simply following it's internal logic to assign the correct numbers in the rendered output, but it seems to me your real problem is the source.

    – music2myear
    Jan 30 at 17:49











  • Yeah I don't expect a markdown compiler to edit the source to fix the numbering but I figure there's a tool or API that exposes the renumbering logic so I can fix my Markdown source file.

    – Andrew Keeton
    Jan 30 at 17:57











  • Most markdown tools I've used, ranging from wikis to WYSIWYGs, have interpreted the markdown in exactly the same way demonstrated here. I'm guessing that means this is the "standard". There are ways to reset your OL counts, but I cannot think of them off the top of my head. I'd imagine that is documented somewhere.

    – music2myear
    Jan 30 at 18:05











  • Because of this, it's still not super clear what you are actually asking. It appears to me that Markdown is functioning the way it is supposed to, and your own tools you use for reading the .md file are the ones with the problem. Further, SuperUser does not recommend software nor do we entertain requests for software recommendations. If you could edit your question to remove the references to requesting software recommendations and instead focusing on getting a solution, and clarify what you're actually trying to accomplish, we may be able to find you a good answer.

    – music2myear
    Jan 30 at 18:08














2












2








2








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:





  1. list item 1

  2. list item 2


    1. sublist item 1

    2. sublist item 2



  3. 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.










share|improve this question
















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:





  1. list item 1

  2. list item 2


    1. sublist item 1

    2. sublist item 2



  3. 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.







markdown






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 30 at 19:11







Andrew Keeton

















asked Jan 28 at 16:15









Andrew KeetonAndrew Keeton

5722922




5722922




closed as off-topic by DavidPostill Feb 4 at 16:26


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – DavidPostill

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by DavidPostill Feb 4 at 16:26


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – DavidPostill

If this question can be reworded to fit the rules in the help center, please edit the question.













  • What is generating these Markdown files? Markdown is simply following it's internal logic to assign the correct numbers in the rendered output, but it seems to me your real problem is the source.

    – music2myear
    Jan 30 at 17:49











  • Yeah I don't expect a markdown compiler to edit the source to fix the numbering but I figure there's a tool or API that exposes the renumbering logic so I can fix my Markdown source file.

    – Andrew Keeton
    Jan 30 at 17:57











  • Most markdown tools I've used, ranging from wikis to WYSIWYGs, have interpreted the markdown in exactly the same way demonstrated here. I'm guessing that means this is the "standard". There are ways to reset your OL counts, but I cannot think of them off the top of my head. I'd imagine that is documented somewhere.

    – music2myear
    Jan 30 at 18:05











  • Because of this, it's still not super clear what you are actually asking. It appears to me that Markdown is functioning the way it is supposed to, and your own tools you use for reading the .md file are the ones with the problem. Further, SuperUser does not recommend software nor do we entertain requests for software recommendations. If you could edit your question to remove the references to requesting software recommendations and instead focusing on getting a solution, and clarify what you're actually trying to accomplish, we may be able to find you a good answer.

    – music2myear
    Jan 30 at 18:08



















  • What is generating these Markdown files? Markdown is simply following it's internal logic to assign the correct numbers in the rendered output, but it seems to me your real problem is the source.

    – music2myear
    Jan 30 at 17:49











  • Yeah I don't expect a markdown compiler to edit the source to fix the numbering but I figure there's a tool or API that exposes the renumbering logic so I can fix my Markdown source file.

    – Andrew Keeton
    Jan 30 at 17:57











  • Most markdown tools I've used, ranging from wikis to WYSIWYGs, have interpreted the markdown in exactly the same way demonstrated here. I'm guessing that means this is the "standard". There are ways to reset your OL counts, but I cannot think of them off the top of my head. I'd imagine that is documented somewhere.

    – music2myear
    Jan 30 at 18:05











  • Because of this, it's still not super clear what you are actually asking. It appears to me that Markdown is functioning the way it is supposed to, and your own tools you use for reading the .md file are the ones with the problem. Further, SuperUser does not recommend software nor do we entertain requests for software recommendations. If you could edit your question to remove the references to requesting software recommendations and instead focusing on getting a solution, and clarify what you're actually trying to accomplish, we may be able to find you a good answer.

    – music2myear
    Jan 30 at 18:08

















What is generating these Markdown files? Markdown is simply following it's internal logic to assign the correct numbers in the rendered output, but it seems to me your real problem is the source.

– music2myear
Jan 30 at 17:49





What is generating these Markdown files? Markdown is simply following it's internal logic to assign the correct numbers in the rendered output, but it seems to me your real problem is the source.

– music2myear
Jan 30 at 17:49













Yeah I don't expect a markdown compiler to edit the source to fix the numbering but I figure there's a tool or API that exposes the renumbering logic so I can fix my Markdown source file.

– Andrew Keeton
Jan 30 at 17:57





Yeah I don't expect a markdown compiler to edit the source to fix the numbering but I figure there's a tool or API that exposes the renumbering logic so I can fix my Markdown source file.

– Andrew Keeton
Jan 30 at 17:57













Most markdown tools I've used, ranging from wikis to WYSIWYGs, have interpreted the markdown in exactly the same way demonstrated here. I'm guessing that means this is the "standard". There are ways to reset your OL counts, but I cannot think of them off the top of my head. I'd imagine that is documented somewhere.

– music2myear
Jan 30 at 18:05





Most markdown tools I've used, ranging from wikis to WYSIWYGs, have interpreted the markdown in exactly the same way demonstrated here. I'm guessing that means this is the "standard". There are ways to reset your OL counts, but I cannot think of them off the top of my head. I'd imagine that is documented somewhere.

– music2myear
Jan 30 at 18:05













Because of this, it's still not super clear what you are actually asking. It appears to me that Markdown is functioning the way it is supposed to, and your own tools you use for reading the .md file are the ones with the problem. Further, SuperUser does not recommend software nor do we entertain requests for software recommendations. If you could edit your question to remove the references to requesting software recommendations and instead focusing on getting a solution, and clarify what you're actually trying to accomplish, we may be able to find you a good answer.

– music2myear
Jan 30 at 18:08





Because of this, it's still not super clear what you are actually asking. It appears to me that Markdown is functioning the way it is supposed to, and your own tools you use for reading the .md file are the ones with the problem. Further, SuperUser does not recommend software nor do we entertain requests for software recommendations. If you could edit your question to remove the references to requesting software recommendations and instead focusing on getting a solution, and clarify what you're actually trying to accomplish, we may be able to find you a good answer.

– music2myear
Jan 30 at 18:08










1 Answer
1






active

oldest

votes


















2





+100









I am unaware of any tools that can fix this, but I do have one (potential) solution.



Render your markdown into HTML, then use an HTML-to-markdown service (like this or this) to convert it back to markdown. Not the most efficient, but it should get the job done.






share|improve this answer
























  • This is actually the perfect answer (see Edit #1). Accepted!

    – Andrew Keeton
    Jan 30 at 19:12











  • @AndrewKeeton glad I could help :)

    – rahuldottech
    Jan 30 at 20:49


















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2





+100









I am unaware of any tools that can fix this, but I do have one (potential) solution.



Render your markdown into HTML, then use an HTML-to-markdown service (like this or this) to convert it back to markdown. Not the most efficient, but it should get the job done.






share|improve this answer
























  • This is actually the perfect answer (see Edit #1). Accepted!

    – Andrew Keeton
    Jan 30 at 19:12











  • @AndrewKeeton glad I could help :)

    – rahuldottech
    Jan 30 at 20:49
















2





+100









I am unaware of any tools that can fix this, but I do have one (potential) solution.



Render your markdown into HTML, then use an HTML-to-markdown service (like this or this) to convert it back to markdown. Not the most efficient, but it should get the job done.






share|improve this answer
























  • This is actually the perfect answer (see Edit #1). Accepted!

    – Andrew Keeton
    Jan 30 at 19:12











  • @AndrewKeeton glad I could help :)

    – rahuldottech
    Jan 30 at 20:49














2





+100







2





+100



2




+100





I am unaware of any tools that can fix this, but I do have one (potential) solution.



Render your markdown into HTML, then use an HTML-to-markdown service (like this or this) to convert it back to markdown. Not the most efficient, but it should get the job done.






share|improve this answer













I am unaware of any tools that can fix this, but I do have one (potential) solution.



Render your markdown into HTML, then use an HTML-to-markdown service (like this or this) to convert it back to markdown. Not the most efficient, but it should get the job done.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 30 at 18:17









rahuldottechrahuldottech

3,53432649




3,53432649













  • This is actually the perfect answer (see Edit #1). Accepted!

    – Andrew Keeton
    Jan 30 at 19:12











  • @AndrewKeeton glad I could help :)

    – rahuldottech
    Jan 30 at 20:49



















  • This is actually the perfect answer (see Edit #1). Accepted!

    – Andrew Keeton
    Jan 30 at 19:12











  • @AndrewKeeton glad I could help :)

    – rahuldottech
    Jan 30 at 20:49

















This is actually the perfect answer (see Edit #1). Accepted!

– Andrew Keeton
Jan 30 at 19:12





This is actually the perfect answer (see Edit #1). Accepted!

– Andrew Keeton
Jan 30 at 19:12













@AndrewKeeton glad I could help :)

– rahuldottech
Jan 30 at 20:49





@AndrewKeeton glad I could help :)

– rahuldottech
Jan 30 at 20:49



Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy