mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
* Use stricter Vue eslint setting * Implement v-md directive Replaces old uses of v-html + md util * Fix typo
11 lines
200 B
TypeScript
11 lines
200 B
TypeScript
import { Directive } from 'vue';
|
|
import { md } from '@/utils/md';
|
|
|
|
const Markdown: Directive = {
|
|
beforeMount(el, binding) {
|
|
el.innerHTML = md(binding.value ?? '');
|
|
},
|
|
};
|
|
|
|
export default Markdown;
|