summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/src
diff options
context:
space:
mode:
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 {