Feature Request: Give access to the editor in getLevel
, for the Table of Contents extension
#4908
WilliamIPark
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I'd like to see some way to access to the entire editor within the
getLevel
configuration option for the Table of Contents extension, so that I can base the anchor's level off the current content of the doc.Use Case
I run into a limitation of the current implantation because I wanted to base the anchor's level relative to that of the lowest heading level attribute found in the document. For this, I needed to examine the entire doc's content.
For example, if I have a structure like:
I'd want the depth levels to be 1, 2, and 3, assuming there are no H2s, or H1s in the rest of the document.
Type
New feature
Beta Was this translation helpful? Give feedback.
All reactions