mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	
						commit
						05dd381502
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,6 @@
 | 
			
		|||
import { lib as emojilib } from 'emojilib';
 | 
			
		||||
import { JSDOM } from 'jsdom';
 | 
			
		||||
import config from '../config';
 | 
			
		||||
 | 
			
		||||
const handlers = {
 | 
			
		||||
	bold({ document }, { bold }) {
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +44,7 @@ const handlers = {
 | 
			
		|||
 | 
			
		||||
	mention({ document }, { content }) {
 | 
			
		||||
		const a = document.createElement('a');
 | 
			
		||||
		a.href = '/' + content;
 | 
			
		||||
		a.href = `${config.url}/${content}`;
 | 
			
		||||
		a.textContent = content;
 | 
			
		||||
		document.body.appendChild(a);
 | 
			
		||||
	},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue