From 7bb0e3a0723460a3ce3beb4a4d20cf9b8f2a8fa7 Mon Sep 17 00:00:00 2001 From: James Brumond Date: Sun, 30 Apr 2023 19:01:33 -0700 Subject: [PATCH] readme --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 481d869..aa02aca 100644 --- a/readme.md +++ b/readme.md @@ -50,13 +50,13 @@ async function main() { } ``` -### Handling Frontmatter +### Handling front matter ```ts import { process_frontmatter } from '@doc-utils/markdown2html'; const raw_content = `--- -title: Example Markdown with Frontmatter +title: Example Markdown with front matter foo: - bar - baz @@ -67,7 +67,7 @@ foo: const { frontmatter, markdown } = process_frontmatter(raw_content); -console.log(frontmatter.title); // "Example Markdown with Frontmatter" +console.log(frontmatter.title); // "Example Markdown with front matter" console.log(frontmatter.foo); // [ "bar", "baz" ] console.log(markdown); // "\n# This is some markdown\n" ``` @@ -80,11 +80,11 @@ console.log(markdown); // "\n# This is some markdown\n" echo '# This is some markdown' | ./bin/markdown2html --base-url 'https://example.com' > output.html ``` -### Handling Frontmatter +### Handling front matter ```bash filecontents="--- -title: Example Markdown with Frontmatter +title: Example Markdown with front matter foo: - bar - baz