297 Commits

Author SHA1 Message Date
Elian Doran
858ad91708
feat(import/single): mermaid with .mmd extension 2025-03-22 15:45:36 +02:00
Elian Doran
3dae771e90
feat(import/single): mermaid with .mermaid extension 2025-03-22 15:41:56 +02:00
Elian Doran
800424405a
fix(import/zip): support special characters for attachments 2025-03-16 14:39:27 +02:00
Elian Doran
3eaa68da23
feat(import/markdown): maintain consistency with CKEditor for images 2025-03-16 13:58:31 +02:00
Elian Doran
3c93fdc202
feat(markdown/import): remove space in admonition 2025-03-15 22:39:33 +02:00
Elian Doran
1bf16bfa22
feat(import/markdown): remove spaces in lists 2025-03-15 21:30:19 +02:00
Elian Doran
30593eeeac
refactor(import/markdown): change renderer instead of applying an uglifier 2025-03-15 21:07:02 +02:00
Elian Doran
2b966afbe1
fix(test): tests that got broken along the way 2025-03-15 17:51:10 +02:00
Elian Doran
535233fec8
feat(import/markdown): basic support for admonitions 2025-03-15 11:58:11 +02:00
Elian Doran
d9764365cb
feat(import): allow importing .excalidraw files 2025-03-14 22:13:31 +02:00
Elian Doran
a2f0896c2a
feat(import/markdown): collapse unnecessary whitespace when importing 2025-03-14 19:50:26 +02:00
Elian Doran
06d848ba17
feat(code): support mips (closes #1406) 2025-03-12 10:54:44 +02:00
Elian Doran
42821d47c8
refactor(mime): sort alphabetically 2025-03-12 10:54:19 +02:00
Elian Doran
b278bc8ce4
refactor(test): use matrix for testing import/export 2025-03-11 21:11:23 +02:00
Elian Doran
a2795f3440
fix(import/markdown): title deduplication breaking special chars 2025-03-11 17:51:35 +02:00
Elian Doran
d134ee0552
fix(edit-docs): preserve attachment IDs 2025-03-10 20:50:57 +02:00
Elian Doran
841bc54f78
feat(edit-docs): preserve IDs when importing 2025-03-10 19:14:46 +02:00
Elian Doran
f3d753cc46
feat(edit-docs): initialize database automatically 2025-03-10 17:04:17 +02:00
Elian Doran
df2a9aed44
feat(edit-docs): automatically write documentation on start-up 2025-03-10 16:20:48 +02:00
Panagiotis Papadopoulos
2beaaa95bf chore(prettier): fix code style 2025-03-02 20:47:57 +01:00
Elian Doran
bd933dde28
chore(test): disable download of images 2025-02-26 18:58:08 +02:00
Elian Doran
24c02e013b
fix(import/enex): "Missing or wrong content type for resource" (fixes #943) 2025-02-23 19:58:43 +02:00
Elian Doran
bedc61c3d0
feat(import/zip): support UTF-16 LE with BOM (closes #1241) 2025-02-22 01:37:22 +02:00
Elian Doran
c925ae5f15
feat(import/single): support UTF-16 LE with BOM for markdown notes 2025-02-22 01:37:22 +02:00
Elian Doran
77ee7f96c1
feat(import/single): support UTF-16 LE with BOM for text notes 2025-02-22 01:37:22 +02:00
Elian Doran
cadd78524c
feat(import/single): support UTF-16 LE with BOM for code notes 2025-02-22 01:37:22 +02:00
Elian Doran
fd4f35e879
feat(import/single): support UTF-16 LE with BOM for HTML 2025-02-22 01:37:22 +02:00
Elian Doran
860de346a7
feat(import/single): treat mdx as markdown 2025-02-20 20:38:58 +02:00
Elian Doran
324a3d0d8b
feat(import): trim .mdx extension from import 2025-02-20 20:29:00 +02:00
Elian Doran
f9e4ae7210
feat(import/zip): treat mdx as markdown (closes #1236) 2025-02-20 20:25:42 +02:00
Panagiotis Papadopoulos
2d1381b4f8 fix(import/mime): fix TypeScript handling
.ts file are now treated as code type with text/x-typescript as MIME type

fixes #1142
2025-02-09 17:45:15 +01:00
Panagiotis Papadopoulos
5d019137fa test: add test for .ts file 2025-02-09 17:43:25 +01:00
Elian Doran
7ae7831a27
Merge pull request #1022 from TriliumNext/fix_import-utils-#1016
fix(import/utils.handleH1): fix stripping of all <h1> tags that match title tag
2025-01-26 14:28:52 +02:00
Elian Doran
4203a1160e
Merge pull request #1018 from TriliumNext/fix_server-build
fix: fix server build not running due to missing file
2025-01-22 23:39:09 +02:00
Panagiotis Papadopoulos
05b433d44e test(import/utils): remove leftover unused type 2025-01-21 00:33:45 +01:00
Panagiotis Papadopoulos
2296d1a6ba refactor(import/utils.handleH1): simplify handleH1 2025-01-21 00:25:46 +01:00
Panagiotis Papadopoulos
1de9bc7c6f fix(import/utils.handleH1): fix stripping of all <h1> tags that match title
now it will only strip the very first tag that if it matches the title,
otherwise it gets turned into a h2 tag

fixes #1016
2025-01-21 00:04:05 +01:00
Panagiotis Papadopoulos
e1c949aa10 test(import/utils): add test for #handleH1/rework previous tests 2025-01-20 23:57:51 +01:00
Panagiotis Papadopoulos
ba91082115 test(import/utils): add test for extractHtmlTitle 2025-01-20 23:04:16 +01:00
Panagiotis Papadopoulos
8f09b6a192 fix: fix server build not running due to missing file
as discussed in #1010 – quick & dirty fix by copying over the file into the server side of things
Comment added to both files, about deduplication in the future

fixes #1010
2025-01-20 20:15:39 +01:00
Panagiotis Papadopoulos
4be675c4e1 test(import/mime): add additional test case for getMime 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
4e59f58ce6 refactor(import/mime): simplify getMime 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
6a0edb68de refactor(import/mime): simplify getType 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
91ae4b629e refactor(import/mime): simplify normalizeMimeType 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
815929c376 refactor(import/mime): split CODE_MIME_TYPES Record into two separate objects
CODE_MIME_TYPES -> as a Set -> as we only care about the existance of those types
CODE_MIME_TYPES_OVERRIDE -> as a Map with those keys and the "overwrite" values as associated value

-> this way  we don't have to unnecessarily store additional boolean values for everything *but* those hand ful of mime types

-> also I've sorted the items alphabetically, while I was at it
2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
1405e22f89 test(import/mime): add tests 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
33274ada65 test: port spec tests to vitest 2025-01-17 20:24:20 +01:00
Elian Doran
1807b2b031
chore(types): missing import type for JS imports 2025-01-13 23:18:10 +02:00
Elian Doran
9db9d412d9
feat(import/markdown): preserve language tags when possible 2025-01-11 15:22:36 +02:00
Elian Doran
36387deb0d
chore(test): add test for markdown import 2025-01-10 22:03:08 +02:00