Sanitize all user inputted md

This commit is contained in:
rijkvanzanten
2021-05-14 16:04:36 -04:00
parent 63555239dd
commit a0512f8b5e
25 changed files with 80 additions and 71 deletions

View File

@@ -31,13 +31,13 @@
<v-divider />
<div class="page-description" v-html="marked($t('page_help_users_item'))" />
<div class="page-description" v-html="md($t('page_help_users_item'))" />
</sidebar-detail>
</template>
<script lang="ts">
import { defineComponent, ref, watch } from '@vue/composition-api';
import marked from 'marked';
import { md } from '@/utils/md';
import localizedFormat from '@/utils/localized-format';
import i18n from '@/lang';
@@ -67,7 +67,7 @@ export default defineComponent({
{ immediate: true }
);
return { marked, lastAccessDate };
return { md, lastAccessDate };
},
});
</script>