View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/563 Closes #534 Approved-by: Marie <marie@kaifa.ch> Approved-by: Tess K <me@thvxl.se>
This commit is contained in:
		
						commit
						cc48b26c1b
					
				
					 6 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -37,7 +37,7 @@ import 'photoswipe/style.css';
 | 
				
			||||||
import XBanner from '@/components/MkMediaBanner.vue';
 | 
					import XBanner from '@/components/MkMediaBanner.vue';
 | 
				
			||||||
import XImage from '@/components/MkMediaImage.vue';
 | 
					import XImage from '@/components/MkMediaImage.vue';
 | 
				
			||||||
import XVideo from '@/components/MkMediaVideo.vue';
 | 
					import XVideo from '@/components/MkMediaVideo.vue';
 | 
				
			||||||
import XModPlayer from '@/components/MkModPlayer.vue';
 | 
					import XModPlayer from '@/components/SkModPlayer.vue';
 | 
				
			||||||
import * as os from '@/os.js';
 | 
					import * as os from '@/os.js';
 | 
				
			||||||
import { FILE_TYPE_BROWSERSAFE, FILE_EXT_TRACKER_MODULES, FILE_TYPE_TRACKER_MODULES } from '@/const.js';
 | 
					import { FILE_TYPE_BROWSERSAFE, FILE_EXT_TRACKER_MODULES, FILE_TYPE_TRACKER_MODULES } from '@/const.js';
 | 
				
			||||||
import { defaultStore } from '@/store.js';
 | 
					import { defaultStore } from '@/store.js';
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -372,7 +372,7 @@ function watchForDraft() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function MFMWindow() {
 | 
					function MFMWindow() {
 | 
				
			||||||
	os.popup(defineAsyncComponent(() => import('@/components/MkMfmWindow.vue')), {}, {}, 'closed');
 | 
						os.popup(defineAsyncComponent(() => import('@/components/SkMfmWindow.vue')), {}, {}, 'closed');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function checkMissingMention() {
 | 
					function checkMissingMention() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -80,7 +80,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const isBlock = props.isBlock ?? false;
 | 
						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
 | 
						 * Gen Vue Elements from MFM AST
 | 
				
			||||||
| 
						 | 
					@ -499,14 +499,14 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			case 'mathInline': {
 | 
								case 'mathInline': {
 | 
				
			||||||
				return [h('bdi', h(MkFormula, {
 | 
									return [h('bdi', h(SkFormula, {
 | 
				
			||||||
					formula: token.props.formula,
 | 
										formula: token.props.formula,
 | 
				
			||||||
					block: false,
 | 
										block: false,
 | 
				
			||||||
				}))];
 | 
									}))];
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			case 'mathBlock': {
 | 
								case 'mathBlock': {
 | 
				
			||||||
				return [h('bdi', { class: 'block' }, h(MkFormula, {
 | 
									return [h('bdi', { class: 'block' }, h(SkFormula, {
 | 
				
			||||||
					formula: token.props.formula,
 | 
										formula: token.props.formula,
 | 
				
			||||||
					block: true,
 | 
										block: true,
 | 
				
			||||||
				}))];
 | 
									}))];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue