rename our components - fixes #534

This commit is contained in:
dakkar 2024-06-28 11:10:21 +01:00
parent 84e3eae77f
commit 7bafb3ab2e
6 changed files with 5 additions and 5 deletions

View file

@ -80,7 +80,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
const isBlock = props.isBlock ?? false;
const MkFormula = defineAsyncComponent(() => import('@/components/MkFormula.vue'));
const SkFormula = defineAsyncComponent(() => import('@/components/SkFormula.vue'));
/**
* Gen Vue Elements from MFM AST
@ -499,14 +499,14 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
}
case 'mathInline': {
return [h('bdi', h(MkFormula, {
return [h('bdi', h(SkFormula, {
formula: token.props.formula,
block: false,
}))];
}
case 'mathBlock': {
return [h('bdi', { class: 'block' }, h(MkFormula, {
return [h('bdi', { class: 'block' }, h(SkFormula, {
formula: token.props.formula,
block: true,
}))];