Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding: add front matter module #2335

Merged
merged 6 commits into from
Jun 14, 2022
Merged

encoding: add front matter module #2335

merged 6 commits into from
Jun 14, 2022

Conversation

littledivy
Copy link
Member

Closes #2333

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k
Copy link
Member

kt3k commented Jun 14, 2022

BTW I'm also an author of this PR.

So please someone take another look on this PR?

@littledivy littledivy merged commit 6dbb212 into main Jun 14, 2022
@littledivy littledivy deleted the front-matter branch June 14, 2022 11:16
cjihrig pushed a commit to bartlomieju/deno_std that referenced this pull request Jun 28, 2022
* const { attrs, body, frontMatter } = extract<{ title: string }>("---\ntitle: Three dashes marks the spot\n---\n");
* assertEquals(attrs.title, "Three dashes marks the spot");
* assertEquals(body, "");
* assertEquals(frontMatter, "---\ntitle: Three dashes marks the spot\n---\n");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, the test here should be
assertEquals(frontMatter, "title: Three dashes marks the spot");
without the front matter payload.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frontmatter parser
4 participants