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

Configure Feed

Select the types of activity you want to include in your feed.

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

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])$/;

Thanks for bringing this up; good catch! Will make a PR to update the regex

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

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