udctl 如何讓 Markdown 筆記的圖片在搬家後仍能顯示
Where do the images in your markdown go? Paste once, and they are on the web, your phone and in local folders
重點導讀
Markdown 筆記裡的圖片常放在另外的檔案裡,搬動筆記可能讓圖片連結失效,用手機看筆記也得另外同步。
- udctl 讓你直接貼上或拖入圖片,圖片會存到自己選擇的伺服器硬碟或 S3 相容儲存空間,筆記則用檔案 ID 找到圖片,所以改名或搬到別的資料夾後仍能顯示。手機和電腦連到同一臺 udctl 伺服器,就能在同一篇筆記裡看到圖片。
- 需要一般檔案時,也能用
ud pull /travel/ --fetch-attachments匯出 Markdown 筆記和圖片。PDF 等其他檔案也能放進筆記,並在頁面中預覽或下載。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
信源出處dev.to
Where do the images in your markdown go? Paste once, and they are on the web, your phone and in local folders
本文為 888news 精選之重點導讀。若需閱讀作者完整原文、技術細節與官方討論,請前往原始網站。
來源: Dev.to Top Tech (dev.to)
開啟原文