How can I match labels or strings within `where()` using regex?

That’s works! Thank you so much! At first it wasn’t working because I had this code below where I’d pasted your code:

  // Provide section numbering for H1/H2/H3 headings. 
  // Exclude Table of Contents, List of {Figures|Tables}, References, etc.
  show heading.where(depth: 1, outlined: true)
   .or(heading.where(depth: 2, outlined: true))
   .or(heading.where(depth: 3, outlined: true)): set heading(numbering: sectionnumbering)

After moving it to be above your code, your code now works. :smile:

2 Likes