It’s more of a Markdown thing. Markdown doesn’t define a way to jump the numbers in an ordered list. It will work if you instead switch to using raw HTML for that portion of your Markdown content.
<ol class="org-ol">
<li value="17">This will be 17!</li>
<li>This will be 18.</li>
<li value="123">This will be 123!</li>
<li>This will be 124.</li>
</ol>
Yes, Hugo (CommonMark) does allow interleaving Markdown and HTML, but you need to set this option in your site config:
# In your config.toml
[markup.goldmark.renderer]
unsafe = true
Ref: I have a test page for forcing ordered list numbering here.
Thanks people for suggesting the solutions. For now the quickest way to go forward for me is the html-in-md approach, though in future I would like to bend towards custom CSS solution due to the fact that HTML in md doesn’t appease aesthetically and also its not that pleasant to write when compared to markdown.
Annotating markdown with a CSS classes is pretty neat trick. It combines the best of both worlds- simplicity of writing markdown and dynamic customizability of CSS. Didn’t know about that. Thanks a lot for mentioning the feature.
FYI I’ve marked @kaushalmodi 's answer as the solution to my question just because I ended up using that. This marking is not entirely correct as other solutions also achieve the same effect. Just wanted to highlight this.