blob: ab2ff6e0ef83953b27e5ae5de4943643771346bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<script>
import SafeHtml from '~/vue_shared/directives/safe_html';
import MarkdownFieldView from '~/vue_shared/components/markdown/field_view.vue';
export default {
components: {
MarkdownFieldView,
},
directives: {
SafeHtml,
},
props: {
description: {
type: String,
required: false,
default: '',
},
},
safeHtmlConfig: { ADD_TAGS: ['gl-emoji'] },
};
</script>
<template>
<markdown-field-view class="snippet-description" data-qa-selector="snippet_description_content">
<div
v-safe-html:[$options.safeHtmlConfig]="description"
class="md js-snippet-description"
></div>
</markdown-field-view>
</template>
|