Easy Table of Contents for AMP is a compatibility addon for a popular table of contents plugin called Easy Table of Contents created by Steven A. Zahm.
This AMP compatibility addon generates a table of contents with your existing setup and makes them AMP automatically.
Integrating the table of contents was a little tougher than usual but we wanted to get the same functionality like non-AMP so we decided to work a little harder on it and get it ready for you.
This is the most advanced Table of Contents integration in the AMP available in WordPress.