mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	feat(highlight): add cypher
This commit is contained in:
		
							parent
							
								
									eb77a880dc
								
							
						
					
					
						commit
						6a3a6243c4
					
				| @ -36,6 +36,8 @@ | ||||
|     *   Added the Nix language (and also in code blocks for text notes). | ||||
|     *   Added an indentation marker. | ||||
|     *   Note: syntax highlighting for some languages (mostly HTML-template languages such as EJS, JSP) is no longer supported due to lack of upstream support. If this is a problem, feel free to report an issue and we can see what can be done about it. | ||||
| *   Syntax highlighting in code blocks for text notes: | ||||
|     *   Added support for Cypher. | ||||
| *   Mermaid diagrams: basic syntax highlight (not all diagram types are supported) and code folding. | ||||
| *   Slight organization in Appearance settings: code block themes are now in "Text Notes", added a "Related settings" section in Appearance. | ||||
| *   [Added support for opening and activating a note in a new tab using Ctrl+Shift+click on notes in the launcher pane, note tree, or note images](https://github.com/TriliumNext/Notes/pull/1854) by @SiriusXT | ||||
|  | ||||
| @ -21,6 +21,7 @@ | ||||
|   "dependencies": { | ||||
|     "@exercism/highlightjs-gdscript": "0.0.1", | ||||
|     "@triliumnext/commons": "workspace:*", | ||||
|     "highlight.js": "11.11.1" | ||||
|     "highlight.js": "11.11.1", | ||||
|     "highlightjs-cypher": "1.2.0" | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -6,7 +6,7 @@ type MimeRecord = Record<string, (() => Promise<{ default: LanguageFn}>) | null> | ||||
| const byMimeType: MimeRecord = { | ||||
|     "text/plain": () => import("highlight.js/lib/languages/plaintext"), | ||||
|     "application/dart": () => import("highlight.js/lib/languages/dart"), | ||||
|     "application/edn": null, | ||||
|     "application/edn": () => import("highlight.js/lib/languages/clojure"), | ||||
|     "application/javascript;env=backend": () => import("highlight.js/lib/languages/javascript"), | ||||
|     "application/javascript;env=frontend": () => import("highlight.js/lib/languages/javascript"), | ||||
|     "application/json": () => import("highlight.js/lib/languages/json"), | ||||
| @ -19,7 +19,7 @@ const byMimeType: MimeRecord = { | ||||
|     "application/typescript": () => import("highlight.js/lib/languages/typescript"), | ||||
|     "application/x-aspx": null, | ||||
|     "application/x-bat": () => import("highlight.js/lib/languages/dos"), | ||||
|     "application/x-cypher-query": null, | ||||
|     "application/x-cypher-query": () => import("highlightjs-cypher"), | ||||
|     "application/x-ejs": null, | ||||
|     "application/x-erb": () => import("highlight.js/lib/languages/erb"), | ||||
|     "application/x-jsp": () => import("highlight.js/lib/languages/java"), | ||||
|  | ||||
							
								
								
									
										6
									
								
								packages/highlightjs/src/types.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								packages/highlightjs/src/types.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -3,3 +3,9 @@ declare module '@exercism/highlightjs-gdscript' { | ||||
|     const defineLanguage: LanguageFn; | ||||
|     export default defineLanguage; | ||||
| } | ||||
| 
 | ||||
| declare module 'highlightjs-cypher' { | ||||
|     import { LanguageFn } from "highlight.js"; | ||||
|     const defineLanguage: LanguageFn; | ||||
|     export default defineLanguage; | ||||
| } | ||||
|  | ||||
							
								
								
									
										11
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										11
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							| @ -1292,6 +1292,9 @@ importers: | ||||
|       highlight.js: | ||||
|         specifier: 11.11.1 | ||||
|         version: 11.11.1 | ||||
|       highlightjs-cypher: | ||||
|         specifier: 1.2.0 | ||||
|         version: 1.2.0 | ||||
| 
 | ||||
|   packages/turndown-plugin-gfm: | ||||
|     dependencies: | ||||
| @ -8755,6 +8758,9 @@ packages: | ||||
|     resolution: {integrity: sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==} | ||||
|     engines: {node: '>=12.0.0'} | ||||
| 
 | ||||
|   highlightjs-cypher@1.2.0: | ||||
|     resolution: {integrity: sha512-mOY/g6R1MgXiYx07icl8nwtXCRDSy4Y9EAlDZKia8Thqe766v6cjnrD6/xWak9UXoLQfWqbHhmRmYuw0SiO+CA==} | ||||
| 
 | ||||
|   history@4.10.1: | ||||
|     resolution: {integrity: sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==} | ||||
| 
 | ||||
| @ -24007,6 +24013,11 @@ snapshots: | ||||
| 
 | ||||
|   highlight.js@11.11.1: {} | ||||
| 
 | ||||
|   highlightjs-cypher@1.2.0: | ||||
|     dependencies: | ||||
|       minimist: 1.2.8 | ||||
|       mkdirp: 1.0.4 | ||||
| 
 | ||||
|   history@4.10.1: | ||||
|     dependencies: | ||||
|       '@babel/runtime': 7.27.0 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran