Skip to content

add: support for ${filename} in specifying attachment folder (#356)#1415

Open
flovst wants to merge 3 commits into
windingwind:masterfrom
flovst:attachment-using-filename
Open

add: support for ${filename} in specifying attachment folder (#356)#1415
flovst wants to merge 3 commits into
windingwind:masterfrom
flovst:attachment-using-filename

Conversation

@flovst
Copy link
Copy Markdown

@flovst flovst commented Jul 14, 2025

Add support for ${filename} representing the corresponding markdown filename of the current note when specifying attachment folder (as in Typora).

As follows, if you export the note to test.md, the attachments will be saved to a folder named test.assets in the same directory.
image

The modifications should only involve syncing markdowns and exporting markdown/latex.
However, there is a 'Don't overwrite' comment in processN2MRehypeImageNodes() and processN2L...() of src\utils\convert.ts, so I'm not sure if this would harm other functions.

@flovst flovst marked this pull request as ready for review July 14, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant