-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a68587
commit 6d9013f
Showing
4 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
.yarn/patches/@llm-tools-embedjs-loader-markdown-npm-0.1.25-d1d536d640.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/src/markdown-loader.js b/src/markdown-loader.js | ||
index 8a17cb7f5a68d90d2be21682db6e95ce22a3e71c..9ee868ef9d4ff3dc914b3abc3c8006deb1e9c6c6 100644 | ||
--- a/src/markdown-loader.js | ||
+++ b/src/markdown-loader.js | ||
@@ -1,5 +1,4 @@ | ||
import { micromark } from 'micromark'; | ||
-import { mdxJsx } from 'micromark-extension-mdx-jsx'; | ||
import { gfmHtml, gfm } from 'micromark-extension-gfm'; | ||
import createDebugMessages from 'debug'; | ||
import fs from 'node:fs'; | ||
@@ -21,7 +20,7 @@ export class MarkdownLoader extends BaseLoader { | ||
? (await getSafe(this.filePathOrUrl, { format: 'buffer' })).body | ||
: await stream2buffer(fs.createReadStream(this.filePathOrUrl)); | ||
this.debug('MarkdownLoader stream created'); | ||
- const result = micromark(buffer, { extensions: [gfm(), mdxJsx()], htmlExtensions: [gfmHtml()] }); | ||
+ const result = micromark(buffer, { extensions: [gfm()], htmlExtensions: [gfmHtml()] }); | ||
this.debug('Markdown parsed...'); | ||
const webLoader = new WebLoader({ | ||
urlOrContent: result, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters