NotePlan / NotePlan/plugins

Templating issue - code fences are getting wiped out

Offen
#387 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@mikeerickson arbeitet bereits daran.

Seit 10.1.2023.

bug P-7
Vorherrschende Sprache
JavaScript
Sterne
204
Forks
82
Ø Merge
22 Std. 27 Min.
Gemergte PRs (30 T.)
3

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.