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
128 stars 12 forks source link

Add support for nested ordered list #41

Closed bjtho08 closed 3 months ago

bjtho08 commented 4 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 3 months ago

Supported in 1.4.0, thanks!