mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-31 05:24:13 +00:00 
			
		
		
		
	spaces
This commit is contained in:
		
							parent
							
								
									f64e6e8646
								
							
						
					
					
						commit
						cc6b9f4cb0
					
				
					 1 changed files with 12 additions and 12 deletions
				
			
		|  | @ -237,7 +237,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 							style = ''; | ||||
| 							break; | ||||
| 						} | ||||
| 			 | ||||
| 
 | ||||
| 						const direction = token.props.args.out | ||||
| 							? 'alternate-reverse' | ||||
| 							: 'alternate'; | ||||
|  | @ -393,13 +393,13 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 			} | ||||
| 
 | ||||
| 			case 'center': { | ||||
| 				return [h('bdi',h('div', { | ||||
| 				return [h('bdi', h('div', { | ||||
| 					style: 'text-align:center;', | ||||
| 				}, genEl(token.children, scale)))]; | ||||
| 			} | ||||
| 
 | ||||
| 			case 'url': { | ||||
| 				return [h('bdi',h(MkUrl, { | ||||
| 				return [h('bdi', h(MkUrl, { | ||||
| 					key: Math.random(), | ||||
| 					url: token.props.url, | ||||
| 					rel: 'nofollow noopener', | ||||
|  | @ -407,7 +407,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 			} | ||||
| 
 | ||||
| 			case 'link': { | ||||
| 				return [h('bdi',h(MkLink, { | ||||
| 				return [h('bdi', h(MkLink, { | ||||
| 					key: Math.random(), | ||||
| 					url: token.props.url, | ||||
| 					rel: 'nofollow noopener', | ||||
|  | @ -415,7 +415,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 			} | ||||
| 
 | ||||
| 			case 'mention': { | ||||
| 				return [h('bdi',h(MkMention, { | ||||
| 				return [h('bdi', h(MkMention, { | ||||
| 					key: Math.random(), | ||||
| 					host: (token.props.host == null && props.author && props.author.host != null ? props.author.host : token.props.host) ?? host, | ||||
| 					username: token.props.username, | ||||
|  | @ -423,7 +423,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 			} | ||||
| 
 | ||||
| 			case 'hashtag': { | ||||
| 				return [h('bdi',h(MkA, { | ||||
| 				return [h('bdi', h(MkA, { | ||||
| 					key: Math.random(), | ||||
| 					to: isNote ? `/tags/${encodeURIComponent(token.props.hashtag)}` : `/user-tags/${encodeURIComponent(token.props.hashtag)}`, | ||||
| 					style: 'color:var(--hashtag);', | ||||
|  | @ -431,7 +431,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 			} | ||||
| 
 | ||||
| 			case 'blockCode': { | ||||
| 				return [h('bdi',h(MkCode, { | ||||
| 				return [h('bdi', h(MkCode, { | ||||
| 					key: Math.random(), | ||||
| 					code: token.props.code, | ||||
| 					lang: token.props.lang ?? undefined, | ||||
|  | @ -439,7 +439,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 			} | ||||
| 
 | ||||
| 			case 'inlineCode': { | ||||
| 				return [h('bdi',h(MkCodeInline, { | ||||
| 				return [h('bdi', h(MkCodeInline, { | ||||
| 					key: Math.random(), | ||||
| 					code: token.props.code, | ||||
| 				}))]; | ||||
|  | @ -447,11 +447,11 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 
 | ||||
| 			case 'quote': { | ||||
| 				if (!props.nowrap) { | ||||
| 					return [h('bdi',h('div', { | ||||
| 					return [h('bdi', h('div', { | ||||
| 						style: QUOTE_STYLE, | ||||
| 					}, genEl(token.children, scale, true)))]; | ||||
| 				} else { | ||||
| 					return [h('bdi',h('span', { | ||||
| 					return [h('bdi', h('span', { | ||||
| 						style: QUOTE_STYLE, | ||||
| 					}, genEl(token.children, scale, true)))]; | ||||
| 				} | ||||
|  | @ -497,14 +497,14 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven | |||
| 			} | ||||
| 
 | ||||
| 			case 'mathInline': { | ||||
| 				return [h('bdi',h(MkFormula, { | ||||
| 				return [h('bdi', h(MkFormula, { | ||||
| 					formula: token.props.formula, | ||||
| 					block: false, | ||||
| 				}))]; | ||||
| 			} | ||||
| 
 | ||||
| 			case 'mathBlock': { | ||||
| 				return [h('bdi',h(MkFormula, { | ||||
| 				return [h('bdi', h(MkFormula, { | ||||
| 					formula: token.props.formula, | ||||
| 					block: true, | ||||
| 				}))]; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue