johansatge / obsidian-automatic-table-of-contents

💠 An Obsidian plugin to create a table of contents in a note, that updates itself when the note changes
MIT License
146 stars 13 forks source link

Add support for nested ordered list #41

Closed bjtho08 closed 6 months ago

bjtho08 commented 7 months ago

Currently, only unordered lists are supported. I would like support for ordered lists.

The end result would be something like this:

% The code block below
```toc
title: # Table of Contents
style: nestedOrderedList

% results in the following toc

Table of Contents

  1. First heading
  2. Second Heading
    1. First Sub-Heading
    2. Second Sub-heading
  3. Third Heading

% given these headings in the document

First heading

Second Heading

First Sub-Heading

Second Sub-heading

Third Heading

johansatge commented 6 months ago

Supported in 1.4.0, thanks!