summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/src
diff options
context:
space:
mode:
authorGravatar Viktor Szépe <viktor@szepe.net> 2024-05-01 07:56:38 +0200
committerGravatar GitHub <noreply@github.com> 2024-05-01 13:56:38 +0800
commita146cf1012483b030a8146fb3035801f3c0c9099 (patch)
treeddececa7326f41bbcdf4e44b7205f6a43e4e8efa /packages/markdown/remark/src
parent1b7ed7a31a3a7a244440562a8e16aac1617c0114 (diff)
downloadastro-a146cf1012483b030a8146fb3035801f3c0c9099.tar.gz
astro-a146cf1012483b030a8146fb3035801f3c0c9099.tar.zst
astro-a146cf1012483b030a8146fb3035801f3c0c9099.zip
Fix typos (#10923)
Diffstat (limited to 'packages/markdown/remark/src')
-rw-r--r--packages/markdown/remark/src/highlight.ts2
-rw-r--r--packages/markdown/remark/src/import-plugin-default.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/markdown/remark/src/highlight.ts b/packages/markdown/remark/src/highlight.ts
index 3338f75b7..41ec8880b 100644
--- a/packages/markdown/remark/src/highlight.ts
+++ b/packages/markdown/remark/src/highlight.ts
@@ -14,7 +14,7 @@ const languagePattern = /\blanguage-(\S+)\b/;
* @param tree
* The hast tree in which to syntax highlight code blocks.
* @param highlighter
- * A fnction which receives the code and language, and returns the HTML of a syntax
+ * A function which receives the code and language, and returns the HTML of a syntax
* highlighted `<pre>` element.
*/
export async function highlightCodeBlocks(tree: Root, highlighter: Highlighter) {
diff --git a/packages/markdown/remark/src/import-plugin-default.ts b/packages/markdown/remark/src/import-plugin-default.ts
index 8c1d01b56..1b6778f75 100644
--- a/packages/markdown/remark/src/import-plugin-default.ts
+++ b/packages/markdown/remark/src/import-plugin-default.ts
@@ -6,7 +6,7 @@ import type * as unified from 'unified';
let cwdUrlStr: string | undefined;
-// In non-browser enviroments, we can try to resolve from the filesystem too
+// In non-browser environments, we can try to resolve from the filesystem too
export async function importPlugin(p: string): Promise<unified.Plugin> {
// Try import from this package first
try {