akosbalasko / akosbalasko/yarle

Tags Not Imported Despite Being Present in .enex File

Open
#674 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.8k
Forks
111
PR merge metrics
No merged PRs in 30d

Description

![Image](https://github.com/user-attachments/assets/20779b59-f79a-4fa4-ac01-4bcac143cfc0)

**System Information:**

* **YARLE Version:** `6.16.0`
* **Node.js Version:** `v22.17.0`
* **Operating System:** Windows 11

**Problem Description:**
When running a conversion, YARLE fails to import any tags from the `.enex` file, even though the tags are clearly present in the source XML. This happens when using both the front matter (Properties) and inline hashtag methods. All other metadata (created date, updated date, source URL) is imported correctly.

**Steps to Reproduce:**

1. Use the `final-config.json` file provided below.
2. Use an `.enex` file containing a note with valid `` elements (example provided below).
3. Run the conversion via the command line: `npx -p yarle-evernote-to-md@latest yarle --configFile ./final-config.json`

[final-config.json](https://github.com/user-attachments/files/21056374/final-config.json)

4. Observe that the resulting `.md` file contains all metadata except for the tags.

-----

### **1. Configuration File (`final-config.json`)**

This configuration successfully imports all metadata *except* tags.

```json
{
"enexSources": [
"C:\\Path\\To\\Your\\Evernote Export.enex"
],
"outputDir": "C:\\Path\\To\\Your\\Output",
"isMetadataNeeded": true,
"isNotebookNameNeeded": false,
"isZettelkastenNeeded": false,
"useZettelIdAsFilename": false,
"plainTextNotesOnly": false,
"skipWebClips": false,
"useHashTags": false,
"outputFormat": "ObsidianMD",
"taskOutputFormat": "ObsidianMD",
"currentTemplate": "---\n{created-at-block}created: {created-at}{end-created-at-block}\n{updated-at-block}updated: {updated-at}{end-updated-at-block}\n{tags-block}\ntags:\n{tag-list}\n{end-tags-block}\n{source-url-block}source-url: \"{source-url}\"{end-source-url-block}\n{location-block}location: {location}{end-location-block}\n---\n{title-block}\n# {title}{end-title-block}\n\n{content-block}{content}{end-content-block}"
}
```

-----

### **2. Example Note from `.enex` Source File**

The following screenshot shows that the tags `Research` and `Teaching` are correctly formatted and present in the source file for the note.

-----

### **3. Actual (Incorrect) Output**

The final markdown file is missing the `tags` property entirely.

```markdown
---
created: 2024-02-26
updated: 2025-06-28
source-url: "https://chat.lmsys.org/"
---

# Compare performance of LLM: Chat with Open Large Language Models

Chatbot Arena: Benchmarking LLMs in the Wild
```

-----

### **Troubleshooting Summary:**

We have confirmed that this is not a user error or a problem with the source `.enex` file. We have exhaustively tested:

* Using both the YARLE GUI and CLI.
* Fixing file encoding issues (`UTF-8` with no BOM).
* Verifying the `enexSources` path and re-exporting notes from Evernote.
* Testing different template variables (`{tags}` and `{tag-list}`).
* Testing the inline hashtag feature (`"useHashTags": true`).

In all CLI tests with a valid configuration and source file, YARLE fails to recognize or render the tag data.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.