# YAML fields issue

**URL:** https://discourse.notenik.app/t/yaml-fields-issue/313
**Category:** Bug Reports
**Created:** [September 19, 2023, 9:12am UTC](https://discourse.notenik.app/t/yaml-fields-issue/313 "2023-09-19T09:12:15Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [April 17, 2024, 2:42pm UTC](https://discourse.notenik.app/t/yaml-fields-issue/313/9 "2024-04-17T14:42:21Z")

</div>

Here I’ll point out a specific issue regarding YAML metadata parsing in Notenik. I have a folder in Notenik where I autmatically add my Kindle annotations. For this purpose I use [kindle plugin](https://github.com/hadynz/obsidian-kindle-plugin) for Obsidian. This plugin has a customizable template for a great control over added YAML metadata. My current issue is the plugin autmatically insert some other metadata for proper syncing between the Kindle and the designated folder. Belowe is an example of the generated markdown file.

```auto
---
title: A Great Book
author: Name Surname
index: Name Surname;
seq: 95.x
level: 2
kindle-sync:
  bookId: '12345'
  title: A Great Book
  author: Name Surname
  highlightsCount: 300
---
Body

```

The follwing `kindle-sync:` and following fields are automatically generated by the plugin and it is persistent, otherwise it will break the sync operation. Indentation is put by the plugin.

```auto
kindle-sync:
  bookId: '12345'
  title: A Great Book
  author: Name Surname
  highlightsCount: 300

```

As you’d notice, the YAML metadata has duplicate field entries; `title` and `author`. However, this autogenerated content is causing an issue in Notenik. Here are the screenshots:

 ![b7be3b64e2d75029977649f2174379ce9eb8c2e868504d3ee64bff0f20828774](https://discourse.notenik.app/uploads/db0641/original/1X/00eea68936ab8190a6a1b439bb18505d81b4a6ce.png)

 ![cc36992af210ae624c2aab18133d722bdb69ed83e9a23e10921b621f2f1bcb08](https://discourse.notenik.app/uploads/db0641/original/1X/a4bcbc5753717187ef4142f0196d3f65041e8bc8.jpeg)

 ![57ec69d5d43fd58876accfcbd3f3bf65d400691368cb7c36b6216582e7023230](https://discourse.notenik.app/uploads/db0641/original/1X/15483083e2e5bdbd6f4556c067980b1bc4a56885.png)

Below are the screenshots from Obsidian and Typora respectively:

 ![524c50897560955908f1bfe61e17bc69ff622a64da10c906ba6d7740f8bf2a1f](https://discourse.notenik.app/uploads/db0641/original/1X/0a4a8af7f276a9d03f2fa78257be2555c61399e7.png)

 ![a001afdee5b50ffa20ce97bddfe5ba1f2dc7ba42187839db24b745e6e2c9501b](https://discourse.notenik.app/uploads/db0641/original/1X/34121d57f1b8ba39f85d1b68547e75457f149196.png)

I wonder if there could be a fix for this, especially for the Notes list. All files generated by the plugin are shown with `title:` prefix.

 ![image](https://discourse.notenik.app/uploads/db0641/original/1X/1b204cc694724fa99cdfa097d2a8badb2212bbd2.png)

My preferred file format is set to YAML. Although my main application is Notenik, I have to rely on YAML metadata for some interoperability between other apps and Notenik. Currently is use Omnivore and Kindle plugins for importing my highlights in to Notenik. For printing purposes I use Typora and Marked 2, which strip the YAML metadata before printing.

Hopefully there would be an “easy” way to fix this issue.

Thank you.

EDIT: By the way this is a minor gripe, since I can use alternative approaches for reading the highlights.

---

_[View the full topic](https://discourse.notenik.app/t/yaml-fields-issue/313)._
