<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.1/anchor.min.js"></script>
<script>
anchors.options.icon = '#';
anchors.add('h2, h3, h4, h5, h6');
</script>