title: Can a generated number from a numbered list be used/referenced by another markup
body: <p>New to markdown parsing, so looking for some advice on if this is even possible.
  I'd like to reference the generated number value of a header or list as a value in a code block markup section. </p>
  
  <p>Thought about using a jinja2 template but need the values after the markdown is rendered.  Thanks in advance.  </p>
  
  <p>Given the following markdown:</p>
  
  <pre><code># Heading One
  
  Source file:  heading-sequence-value.sql
  
  1. Task One
      ```sql
         -- Task task-sequence-value
         CREATE TABLE table_name (column1 datatype);
      ```
  1. Task Two
      ```sql
         -- Task task-sequence-value
         SELECT * FROM table_name;
      ```
  </code></pre>
  
  <p>Desired output:</p>
  
  <p>1 Heading One</p>
  
  <p>Script File: 1.sql</p>
  
  <ol>
  <li>Task One</li>
  </ol>
  
  <pre class="lang-sql prettyprint-override"><code>    -- Task 1
      CREATE TABLE table_name (column1 datatype);
  </code></pre>
  
  <ol start="2">
  <li>Task Two</li>
  </ol>
  
  <pre class="lang-sql prettyprint-override"><code>    -- Task 2
      SELECT * FROM table_name;
  </code></pre>