From 4129f90ef77983049efc6131b6b8a3298264c0cd Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Mon, 6 Mar 2023 09:55:50 +0100 Subject: [PATCH] Fix a couple typos Reviewed-by: Remco Haszing Reviewed-by: Christian Murphy Reviewed-by: Titus Wormer Closes GH-2266. --- docs/docs/getting-started.server.mdx | 2 +- docs/guides/syntax-highlighting.server.mdx | 2 +- packages/mdx/lib/run.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/getting-started.server.mdx b/docs/docs/getting-started.server.mdx index 1d7fc273d..f7374dc00 100644 --- a/docs/docs/getting-started.server.mdx +++ b/docs/docs/getting-started.server.mdx @@ -604,7 +604,7 @@ Install the webpack loader [`@mdx-js/loader`][mdx-loader]. For importing MDX without the `!@mdx-js/loader!` prefix, you can add the loader to the webpack config, by rewiring `react-scripts` using -[CRACO](http://github.com/gsoft-inc/craco). +[CRACO](https://github.com/gsoft-inc/craco). See also [¶ Webpack][webpack], which is used in CRA, and see [¶ React][react], which you’re likely using, for more info. diff --git a/docs/guides/syntax-highlighting.server.mdx b/docs/guides/syntax-highlighting.server.mdx index cc774d008..c18c9f97f 100644 --- a/docs/guides/syntax-highlighting.server.mdx +++ b/docs/guides/syntax-highlighting.server.mdx @@ -135,7 +135,7 @@ console.log(1) ``` ```` -The `meta` part is everything after the language (in thise case, `js`). +The `meta` part is everything after the language (in this case, `js`). This is a *hidden* part of markdown: it’s normally ignored. But as the above example shows, it’s a useful place to put some extra fields. diff --git a/packages/mdx/lib/run.js b/packages/mdx/lib/run.js index ad160903d..90c681035 100644 --- a/packages/mdx/lib/run.js +++ b/packages/mdx/lib/run.js @@ -9,7 +9,7 @@ const AsyncFunction = Object.getPrototypeOf(run).constructor * @param {unknown} options * Parameter. * @return {Promise} - * Anthing. + * Anything. */ export async function run(file, options) { return new AsyncFunction(String(file))(options) @@ -23,7 +23,7 @@ export async function run(file, options) { * @param {unknown} options * Parameter. * @return {any} - * Anthing. + * Anything. */ export function runSync(file, options) { // eslint-disable-next-line no-new-func