mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	chore(monorepo/server): integrate turndown-plugin-gfm
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| "use strict"; | "use strict"; | ||||||
|  |  | ||||||
| import TurndownService, { type Rule } from "turndown"; | import TurndownService, { type Rule } from "turndown"; | ||||||
| import { gfm } from "../../../packages/turndown-plugin-gfm/src/gfm.js"; | import { gfm } from "@triliumnext/turndown-plugin-gfm"; | ||||||
|  |  | ||||||
| let instance: TurndownService | null = null; | let instance: TurndownService | null = null; | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								apps/server/src/types.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								apps/server/src/types.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -18,12 +18,9 @@ declare module "normalize-strings" { | |||||||
|     export default normalizeString; |     export default normalizeString; | ||||||
| } | } | ||||||
|  |  | ||||||
| declare module "@joplin/turndown-plugin-gfm" { | declare module "@triliumnext/turndown-plugin-gfm" { | ||||||
|     import TurndownService from "turndown"; |     import TurndownService from "turndown"; | ||||||
|     namespace gfm { |     export function gfm(service: TurndownService): void; | ||||||
|         function gfm(service: TurndownService): void; |  | ||||||
|     } |  | ||||||
|     export default gfm; |  | ||||||
| } | } | ||||||
|  |  | ||||||
| declare module "is-animated" { | declare module "is-animated" { | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| { | { | ||||||
|   "name": "@joplin/turndown-plugin-gfm", |   "name": "@triliumnext/turndown-plugin-gfm", | ||||||
|   "description": "Turndown plugin to add GitHub Flavored Markdown extensions.", |   "description": "Turndown plugin to add GitHub Flavored Markdown extensions.", | ||||||
|   "publishConfig": { |   "publishConfig": { | ||||||
|     "access": "public" |     "access": "public" | ||||||
		Reference in New Issue
	
	Block a user