hackmdio / hackmdio/hackmd-io-issues

Tags aren't honored when a new document is created through the CLI

Open
#202 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Consider the following example document with the tags `category-tag` and `another-tag` (the first one should be used [as the category per design](https://hackmd.io/s/how-to-tag-notes)):

```md
---
title: issue_example
tags: category-tag, another-tag
---

blablabla

```

directly created from the CLI:

```sh
printf -- "---\ntitle: issue_example\ntags: category-tag, another-tag\n---\n\nblablabla\n" | hackmd-cli import
```

The **tags** of documents created directly from the CLI are **not honored in HackMD's web UI**. The example document above looks like this on after creation:

![Bildschirmfoto von 2020-07-09 01-00-37](https://user-images.githubusercontent.com/20040931/86979327-892ac180-c170-11ea-94a5-0aa112294d0b.png)

The tags are only honored **after the first manual edit** from the HackMD web app. The exact same example document from above on after a manual edit:

![Bildschirmfoto von 2020-07-09 01-01-21](https://user-images.githubusercontent.com/20040931/86979330-8def7580-c170-11ea-947a-3832e96c69e4.png)

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.