mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			452 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			452 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import Attendant from 'turndown-attendant';
 | 
						|
import TurndownService from 'turndown';
 | 
						|
import { gfm } from '../src/lib/gfm.js';
 | 
						|
import { fileURLToPath } from "url";
 | 
						|
import { dirname } from "path";
 | 
						|
 | 
						|
const scriptDir = dirname(fileURLToPath(import.meta.url));
 | 
						|
const attendant = new Attendant({
 | 
						|
	file: `${scriptDir}/index.html`,
 | 
						|
	TurndownService: TurndownService,
 | 
						|
	beforeEach: function(turndownService) {
 | 
						|
		turndownService.use(gfm);
 | 
						|
	},
 | 
						|
});
 | 
						|
 | 
						|
attendant.run();
 |