NotePlan / NotePlan/plugins

.prependParagraph() not respecting frontmatter

Open
#426 1 comment 0 reactions 1 assignee View on GitHub

@EduardMe is already working on this.

Since Mar 18, 2023.

API bug
Dominant language
JavaScript
Stars
204
Forks
82
Avg merge
22h 27m
Merged PRs (30d)
3

Description

In this note:

---
title: Filer TEST destination
tags: #test
---
## Project Tasks (H2)
* Existing task
...

When running note.prependParagraph("new task", "open")` I'd expect to get:

---
title: Filer TEST destination
tags: #test
---
* new task
## Project Tasks (H2)
* Existing task
...

But instead I get

---
* new task
title: Filer TEST destination
tags: #test
---
## Project Tasks (H2)
* Existing task
...

I.e. it isn't respecting the fact that there is frontmatter.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.