NotePlan / NotePlan/plugins

Templating issue - code fences are getting wiped out

Open
#387 0 comments 0 reactions 1 assignee View on GitHub

@mikeerickson is already working on this.

Since Jan 10, 2023.

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

Description

As reported in this, thread. He is seeing two issues:

) the well-known bug related to --- being replaced with five stars. Minimally, this should only replace frontmatter at the front of the file. Not globally, in the middle of lines.
2) code fence markers in a template are being completely wiped out by the template rendering.

https://discord.com/channels/763107030223290449/1043533276503080981/1062448128093065318

Here's a test case template which displays both errors:

https://discord.com/channels/763107030223290449/1043533276503080981/1062221709693956127

and the text which should render if it worked correctly (for the test case) -- assuming 2023, and 01 were entered for the prompts:

https://discord.com/channels/763107030223290449/1043533276503080981/1062225085664088134

cc: @antonyskylar

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.