Commit graph

21 commits

Author SHA1 Message Date
RavenHogwarts
02ff4e26ef feat: support explore URLs and normalize to item links
Update URL matching to recognize xiaohongshu explore URLs in addition
to discovery/item links so shared text that uses either format is
handled. Normalize any matched /explore/ paths to /discovery/item/ so
downstream code receives a consistent canonical URL format. This fixes
cases where explore-style links were previously ignored and simplifies
further processing by unifying URL shapes.
2025-12-01 12:42:57 +08:00
RavenHogwarts
e5535ad3a8 feat: support desktop Xiaohongshu URLs in extractURL
Add a second matching branch in extractURL to detect desktop/web
Xiaohongshu links (https://www.xiaohongshu.com/discovery/item/ID)
in addition to existing mobile xhslink short URLs. Try mobile link
first, fall back to web pattern, and return null if neither match.

This improves URL extraction accuracy for shared texts containing
full site links so downstream processing can handle both link forms.
2025-11-07 16:33:53 +08:00
chris
00e4ccc5a8 Fix extract url failed 2025-10-17 23:36:05 +08:00
Lee Bon Chiang
c64e2a2f31 Update to v1.1.1: Address PR feedback (sentence case, command ID, settings tab headings) 2025-03-22 18:08:17 +08:00
Lee Bon Chiang
25c994c6a9 Update to v1.1.0: Move styles to CSS, fix category selection and download media layout 2025-03-16 13:44:51 +08:00
Lee Bon Chiang
bb04d25c4f Release v1.0.1: Add '其他' category, fix download label clickability, adjust margins, make import button full width, and prevent duplicate cover photo downloads 2025-03-12 10:10:25 +08:00
Lee Bon Chiang
1a3f6430d9 Update IDs to Xiaohongshu-Importer-for-Obsidian 2025-03-10 18:16:24 +08:00
Lee Bon Chiang
2d1b13cfd2 Replace template with Xiaohongshu Importer plugin 2025-03-10 10:04:42 +08:00
Johannes Theiner
e8f03522bc
Adapt to plugin guidelines (#65)
- remove header in settings
- remove logging of changed settings value
2023-07-17 12:36:25 -04:00
Xiao Meng
f690c04577
use LF instead of CRLF (#28) 2022-04-15 14:13:31 -04:00
lishid
db18a36e65 Update build script to include external node packages. 2021-11-01 15:18:11 -04:00
TfTHacker
6fdd374cb8
Adding eslint for code .\src\ (#17) 2021-10-30 14:04:07 -04:00
lishid
3afc9d78ab Update sample plugin to use ESBuild. 2021-10-19 13:34:58 -04:00
fyears
5f95bce9e1 preserve and load settings correctly 2021-10-10 11:11:02 -04:00
lishid
ae30a5a418 Update best practice for settings. 2021-01-24 15:41:47 -05:00
lishid
cfe4d17ce7 Add example for settings. 2020-12-22 11:24:00 -05:00
lishid
9162f82010 Removed init. 2020-10-29 21:41:47 -04:00
lishid
6e8aab9616 Add more examples for hooks. 2020-10-29 18:02:57 -04:00
lishid
99f4035214 Add example for modifying CodeMirror. 2020-10-29 17:36:03 -04:00
lishid
2889865881 Refactor: Use new version of obsidian.d.ts from remote. 2020-10-26 11:07:18 -04:00
lishid
ed3770792a Initial commit! 2020-10-25 16:58:31 -04:00