<commit_before><template>
<div
  class="question-mark"
  :style="sizeStyle"
>
  <help-circle-icon />
  <div class="question-text">
    {{ text }}
  </div>
</div>
</template>

<script>
import { HelpCircleIcon } from 'vue-feather-icons'

export default {
  name: 'spinner',
  components: {
    HelpCircleIcon
  },

  props: {
    text: {
      type: String
    }
  },

  computed: {
  }
}
</script>

<style lang="scss" scoped>
.question-mark {
  position: absolute;

  .question-text {
    background: var(--background-alt);
    border-radius: 5px;
    box-shadow: 0 2px 6px var(--box-shadow);
    display: none;
    max-width: 300px;
    padding: 0.5em;
    position: relative;
    z-index: 300;
  }
<commit_msg>[ux] Add markdown support to question mark widget<commit_after><template>
<div
  class="question-mark"
>
  <help-circle-icon />
  <div
    class="question-text"
    v-html="renderMarkdown(text)"
  >
  </div>
</div>
</template>

<script>
import { HelpCircleIcon } from 'vue-feather-icons'
import { renderMarkdown } from '@/lib/render'

export default {
  name: 'spinner',
  components: {
    HelpCircleIcon
  },

  props: {
    text: {
      type: String
    }
  },

  computed: {
  },

  methods: {
    renderMarkdown
  }
}
</script>

<style lang="scss" scoped>
.question-mark {
  position: relative;

  .question-text {
    background: var(--background-alt);
    border-radius: 5px;
    box-shadow: 0 2px 6px var(--box-shadow);
    display: none;
    min-width: 300px;
    padding: 0.5em;
    position: absolute;
    z-index: 300;
  }

{'fraction_non_alphanumeric': 0.1570782159017453, 'fraction_numerical': 0.015513897866839044, 'mean_word_length': 2.7756097560975608, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5553271', 'n_tokens_mistral': 597, 'n_tokens_neox': 568, 'n_words': 120}