title: Descending ordered lists in pandoc markdown
body: <p>In HTML, I can reverse the numbering of an ordered list by simply adding a <code>reversed</code> attribute:</p>
  
  <pre><code>&lt;ol reversed&gt;
   &lt;li&gt;This is numbered 2&lt;/li&gt;
   &lt;li&gt;This is numbered 1&lt;/li&gt;
  &lt;/ol&gt;
  </code></pre>
  
  <p>Is there a method for achieving something similar in pandoc markdown? What I would like to do is to write the list in the usual way, as follows,</p>
  
  <pre><code>2. This is numbered 2
  1. This is numbered 1
  </code></pre>
  
  <p>and then add some annotation (either markdown or raw HTML) which achieves the effect of the HTML code above. (Just writing the pandoc markdown list as above produces the usual ascending ordering of labels).  I am only interested in having the labels appear in a descending order: I want the items themselves to appear in the same order as in the HTML/Markdown code.</p>
  
  <p>The <a href="https://pandoc.org/MANUAL.html#ordered-lists" rel="nofollow noreferrer">appropriate section</a> of the pandoc manual does not seem to suggest anything specific.</p>
  
  <p>One of the things which I tried, and which does not work, is to attempt to use CSS for adding the reversed attribute, after wrapping the markdown list in a <code>div</code> using raw HTML:</p>
  
  <pre><code>&lt;style&gt;
  div.rev-lists &gt; ol {
    reversed;
  }
  &lt;/style&gt;
  
  &lt;div class="rev-lists"&gt;
  
   2. This is numbered 2
   1. This is numbered 1
  
  &lt;/div&gt;
  </code></pre>
  
  <p>But the CSS code fails to add the <code>reversed</code> attribute to the <code>ol</code> tag.</p>