Add v-md directive (#6835)

* Use stricter Vue eslint setting

* Implement v-md directive

Replaces old uses of v-html + md util

* Fix typo
This commit is contained in:
Rijk van Zanten
2021-07-15 20:01:30 +02:00
committed by GitHub
parent 5f7dce54e2
commit d38681c2ee
27 changed files with 52 additions and 87 deletions

View File

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