ion link(id) {
        return '<a class="anchor" href="#' + id + '" id="' + id + '">link</a>'
    }

    function textToHref(el) {
        return $(el).text().trim().toLocaleLowerCase().replace(/\W/g, '-')
    }

    $(document).ready(function() {

        // Configuration for syntax highlighting using highlightjs.org
        hljs.configure({
            classPrefix: ''
        });

        // Code highlight
        $('pre code').each(function(i, block) {
            hljs.highlightBlock(block);
        });
