mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-26 19:14:12 +00:00 
			
		
		
		
	冗長なハッシュタグの表示を無くした
This commit is contained in:
		
							parent
							
								
									b18013025f
								
							
						
					
					
						commit
						1af50fd7b8
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -40,6 +40,14 @@ export default Vue.component('mk-note-html', { | |||
| 			ast = this.ast; | ||||
| 		} | ||||
| 
 | ||||
| 		if (ast.filter(x => x.type != 'hashtag').length == 0) { | ||||
| 			return; | ||||
| 		} | ||||
| 
 | ||||
| 		while (ast[ast.length - 1].type == 'hashtag') { | ||||
| 			ast.pop(); | ||||
| 		} | ||||
| 
 | ||||
| 		// Parse ast to DOM
 | ||||
| 		const els = flatten(ast.map(token => { | ||||
| 			switch (token.type) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue