2021-01-03 14:25:43 +05:30
|
|
|
<script>
|
|
|
|
import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
|
2021-03-11 19:13:27 +05:30
|
|
|
import $ from 'jquery';
|
2021-01-03 14:25:43 +05:30
|
|
|
import '~/behaviors/markdown/render_gfm';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
directives: {
|
|
|
|
SafeHtml,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
issuable: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.renderGFM();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
renderGFM() {
|
|
|
|
$(this.$refs.gfmContainer).renderGFM();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="description">
|
|
|
|
<div ref="gfmContainer" v-safe-html="issuable.descriptionHtml" class="md"></div>
|
|
|
|
</div>
|
|
|
|
</template>
|