-
-
Notifications
You must be signed in to change notification settings - Fork 35
fix: use unified performSyncWork
for parsing with remark config
#583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 58db688 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR unifies the parsing logic to use performSyncWork with the remark config and removes the redundant fromMarkdown function. Key changes include:
- Adding a new MDX test fixture (576.mdx) with mathematical syntax and updating associated snapshots.
- Updating the markdown processor to use performSyncWork and introducing a helper function to resolve on-disk file paths.
- Removing the fromMarkdown module and updating package.json with the new remark-math dependency.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
test/fixtures/576.mdx | New MDX fixture with LaTeX and inline math syntax |
test/snapshots/parser.test.ts.snap | Updated snapshot for 576.mdx |
test/snapshots/fixtures.test.ts.snap | Updated fixture snapshot for 576.mdx |
packages/eslint-plugin-mdx/src/processors/markdown.ts | Updated parser logic to use performSyncWork and added getOnDiskFilepath helper |
packages/eslint-plugin-mdx/src/from-markdown.ts | Removed redundant fromMarkdown functionality |
package.json | Added remark-math dependency and updated remarkConfig plugins |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #583 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 20 19 -1
Lines 272 274 +2
Branches 46 49 +3
=========================================
+ Hits 272 274 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
63a068a
to
0a2f744
Compare
0a2f744
to
58db688
Compare
Initial checklist
Description of changes
close #576