7 Commits

Author SHA1 Message Date
Elian Doran
a2795f3440
fix(import/markdown): title deduplication breaking special chars 2025-03-11 17:51:35 +02: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
Elian Doran
cef464f88b
fix(import/single): h1 not being removed due to downgrade to h2 2024-11-28 19:37:00 +02:00
maphew
47c05b2c6d feat: prefer HTML title tag over filename during import
When importing HTML files, extract and use the title from the <title> tag
if available, falling back to the filename only when no title tag is found.

This improves handling of titles with special characters that can't be
represented in filenames.
2024-11-16 09:06:58 -07:00
Elian Doran
55eecb0f61
server-esm: Change export object to export default object 2024-07-18 21:42:44 +03:00
Elian Doran
052a0a44f2
server-ts: Port services/import/utils 2024-02-25 07:54:51 +02:00