debian-mirror-gitlab/app/assets/javascripts/snippets/components/snippet_description_view.vue

23 lines
522 B
Vue
Raw Normal View History

2020-05-24 23:13:21 +05:30
<script>
2020-11-24 15:15:51 +05:30
/* eslint-disable vue/no-v-html */
2020-05-24 23:13:21 +05:30
import MarkdownFieldView from '~/vue_shared/components/markdown/field_view.vue';
export default {
components: {
MarkdownFieldView,
},
props: {
description: {
type: String,
required: false,
default: '',
},
},
};
</script>
<template>
2020-06-23 00:09:42 +05:30
<markdown-field-view class="snippet-description" data-qa-selector="snippet_description_content">
2020-05-24 23:13:21 +05:30
<div class="md js-snippet-description" v-html="description"></div>
</markdown-field-view>
</template>