mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-18 22:11:03 +00:00
21 lines
No EOL
347 B
Vue
21 lines
No EOL
347 B
Vue
<template>
|
|
<div class="formatted-content" v-html="markdown">
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Vue from 'vue'
|
|
import messageFormatter from '@/utils/messageFormatter'
|
|
|
|
export default {
|
|
props: {
|
|
message: String,
|
|
require: true
|
|
},
|
|
computed: {
|
|
markdown: function() {
|
|
return messageFormatter(this.message)
|
|
}
|
|
}
|
|
}
|
|
</script> |