It is a sample of the generated TOC that is displayed below.

The above TOC is based on the following articles. The headline number of the article is also automatically output by the plug-in.

Coffee

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Starbucks

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Dotor

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Music

Eric Clapton

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Cream

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Jimmy Page

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Led Zeppelin

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Option settings for this sample

$('.toc-src').tocjs({
  excludes: 'toc-exclude',
  headingNumber: true,
  headings: 'h2, h3',
  includes: '',
  min: 4,
  output: '.toc',
  title: 'Contents',
  titleElement: 'h2',
  tocNumber: true,
});