A CLI for publishing standard.site documents to ATProto sequoia.pub
standard site lexicon cli publishing

astro on windows: sequoia cannot parse frontmatter because of line ending #23

open opened by faillery.tngl.sh

sequoia failed repeatedly to parse the frontmatter of my blog post.

I eventually track it down to a regex imposing ---\n, my windows files had ---\r\n

I fixed all my files to be unix style ending, so it is no longer an issue, but it might catch other ppl unaware.

Yours: 21: const frontmatterRegex = /^(---|+++|***)\n([\s\S]?)\n\1\n([\s\S])$/;

To allow windows markdown files: const frontmatterRegex = /^(---|+++|***)\r?\n([\s\S]?)\r?\n\1\r?\n([\s\S])$/;

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:iwygl3y7pv364blg53j3cva4/sh.tangled.repo.issue/3miizpm2szz22