Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

flovst
Copy link

@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