Skip to content
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

Issue with attachments being saved in different folders according to different notes #595

Closed
wendx opened this issue Jan 26, 2024 · 7 comments

Comments

@wendx
Copy link

wendx commented Jan 26, 2024

1、One enex file contains multiple notes, and I hope the attached images are saved in different folders according to the notes. Can this be achieved using yarle?
2、Another question, after the conversion is completed, my image references become like this. Neither obsidian nor typora can be displayed normally. Is there something wrong with my configuration? How should I configure it?
![[././assets/unknown_filename-83ead839.png\|385x0]]

Looking forward to your answer, thank you very much!

Copy link

Yihaa, thank you for reporting me this issue and to let me improve Yarle!

@akosbalasko
Copy link
Owner

Hi @wendx ,

  1. Yes, pls set "haveEnexLevelResources" to false and "haveGlobalResources": false also.
  2. the double ./ at the beginning is suspicious, would mean that the path itself cannot be resolved. could you pls review the resource folder settings and remove "./" ?

Cheers,
akos

@wendx
Copy link
Author

wendx commented Jan 26, 2024

Hi @akosbalasko

Thank you very much for your reply!
1.It has been able to meet my requirements. To add another question, the attachment folder is: NoteA.resource. Can it support custom configuration? For example, I want it to be: NoteA.assets.
2.Viewing the picture in obsidian is correct,but I want to view the pictures correctly in both Typora and Obsidian.Do I need to configure: Other Standard Markdown-based application?Or are there other better configuration options?

@akosbalasko
Copy link
Owner

hi @wendx ,
1: it has been requested: #102 , but unfortunately still had no time to implement it. If you think that it is really important for you, I could reprioritize my tasks, pls raise it on issuehunt
2. I have to check which markdown "dialect" is supported by Typora, I'll get back to you.

@akosbalasko
Copy link
Owner

Hi @wendx ,
About 2: yes, select StandardMD instead of Obsidian to make it work on Typora.

@akosbalasko
Copy link
Owner

I think I answered all of your questions, or the feat. request has already been requested by others, so I'd close this issue.

@wendx
Copy link
Author

wendx commented Jan 29, 2024

Sorry for the late reply。I tried config as "Other Standard Markdown-based application", but it doesn't seem to work.The image format is still not supported by typora,Below is my configuration information:
Current config is: { "enexSources": [ "C:\\Users\\wen\\yingxiang\\xxxx.enex" ], "outputDir": "I:\\cbb2", "keepOriginalHtml": false, "isMetadataNeeded": true, "isNotebookNameNeeded": false, "isZettelkastenNeeded": false, "useZettelIdAsFilename": false, "plainTextNotesOnly": false, "skipWebClips": false, "useHashTags": true, "trimStartingTabs": false, "convertPlainHtmlNewlines": false, "encryptionPasswords": [ "" ], "nestedTags": { "separatorInEN": "_", "replaceSeparatorWith": "---", "replaceSpaceWith": "-" }, "outputFormat": "StandardMD", "taskOutputFormat": "StandardMD", "obsidianTaskTag": "", "urlEncodeFileNamesAndLinks": false, "sanitizeResourceNameSpaces": true, "replacementChar": "_", "replacementCharacterMap": { "<": "_", ">": "_", ":": "_", "\"": "_", "/": "_", "\\": "_", "|": "_", "?": "_", "*": "_" }, "pathSeparator": "/", "resourcesDir": "assets", "turndownOptions": { "headingStyle": "atx" }, "skipLocation": true, "skipCreationTime": false, "skipUpdateTime": false, "skipSourceUrl": false, "skipTags": false, "skipEnexFileNameFromOutputPath": false, "keepMDCharactersOfENNotes": false, "monospaceIsCodeBlock": false, "currentTemplate": "---\n\n{created-at-block}Created at: {created-at}{end-created-at-block}\n{updated-at-block}Last updated at: {updated-at}{end-updated-at-block}\n{source-url-block}Source URL: {source-url}{end-source-url-block}\n{tags-block}tags: {tags}{end-tags-block}\n\n---\n\n{title-block}# {title}{end-title-block}\n\n\n{content-block}{content}{end-content-block}\n\n", "logseqSettings": { "journalNotes": false }, "obsidianSettings": { "omitLinkDisplayName": false }, "dateFormat": "YYYY-MM-DD", "keepImageSize": "ObsidianMD", "keepOriginalAmountOfNewlines": false, "haveEnexLevelResources": false, "haveGlobalResources": false, "useUniqueUnknownFileNames": true, "useLevenshteinForLinks": false }

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

No branches or pull requests

2 participants