Generate a contents block based on headings in your post / article.
npm install simple-contents
<script src="https://cdn.jsdelivr.net/npm/simple-contents@latest/index.umd.js"></script>
import simpleContents from 'simple-contents';
simpleContents.init('sourceSelector', 'targetSelector');
SimpleContents.init('sourceSelector', 'targetSelector');