mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	feat(import): trim .mdx extension from import
This commit is contained in:
		
							parent
							
								
									f9e4ae7210
								
							
						
					
					
						commit
						324a3d0d8b
					
				| @ -35,6 +35,7 @@ describe("processNoteContent", () => { | ||||
|                 try { | ||||
|                     expect(importedNote.mime).toBe("text/mdx"); | ||||
|                     expect(importedNote.type).toBe("text"); | ||||
|                     expect(importedNote.title).toBe("Text Note"); | ||||
|                 } catch (e) { | ||||
|                     reject(e); | ||||
|                 } | ||||
|  | ||||
| @ -173,6 +173,7 @@ export function removeTextFileExtension(filePath: string) { | ||||
| 
 | ||||
|     switch (extension) { | ||||
|         case ".md": | ||||
|         case ".mdx": | ||||
|         case ".markdown": | ||||
|         case ".html": | ||||
|         case ".htm": | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran