<commit_before><template>

    <a :class="link.class" :href="link.link" @click.prevent="$parent.openModal(link)"><span v-html="link.txt" v-if="link.txt"></span><span>{{ 'Select Link' | trans }}</span> <span class="pk-icon-link pk-icon-hover"></span></a>

</template>

<script>

    module.exports = {

        props: ['index'],

        computed: {

            link: function() {
                return this.$parent.links[this.index] || {};
            }

        }

    };

</script><commit_msg> link preview - support html text<commit_after><template>

    <a :class="link.class" :href="link.link" @click.prevent="$parent.openModal(link)"><span v-html="link.txt" v-if="link.txt"></span><span v-else>{{ 'Select Link' | trans }}</span> <span class="pk-icon-link pk-icon-hover"></span></a>

</template>

<script>

    module.exports = {

        props: ['index'],

        computed: {

            link: function() {
                return this.$parent.links[this.index] || {};
            }

        }

    };

</script>
{'fraction_non_alphanumeric': 0.20959843290891284, 'fraction_numerical': 0.0, 'mean_word_length': 2.4761904761904763, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2649503', 'n_tokens_mistral': 340, 'n_tokens_neox': 323, 'n_words': 55}