Math Formula Support: Integrated remark-math and rehype-katex to render LaTeX formulas#199
Open
arnab9957 wants to merge 5 commits intoHarshYadav152:mainfrom
Open
Math Formula Support: Integrated remark-math and rehype-katex to render LaTeX formulas#199arnab9957 wants to merge 5 commits intoHarshYadav152:mainfrom
arnab9957 wants to merge 5 commits intoHarshYadav152:mainfrom
Conversation
…rkdown tables, and file attachment support.
…nk previews, and user registration.
|
@arnab9957 is attempting to deploy a commit to the Harsh Yadav's projects Team on Vercel. A member of the Team first needs to authorize it. |
HarshYadav152
requested changes
Feb 24, 2026
Owner
HarshYadav152
left a comment
There was a problem hiding this comment.
@arnab9957 Your issue for adding Math formulas and Table comparison support.
But your changes to unnecessary files.
Will you explain your work ?
- Login/Register page
- Similar api route
- savebook/app/api/auth/register/route.js
- savebook/app/api/auth/update-profile/route.js
- savebook/app/api/auth/user/route.js
- savebook/app/profile/page.js
- Why you add .backup files remove them.
- Made any changes to AddNote only no need to make AddNoteEnhanced
- There are some problem in NoteItem.js
- And why you remove
toggleSharefrom NoteState also isPublic from Note model. - Do not remove or change any previous feature.
- Also unnecesary modification in User model.
- Remove
savebook/activate_features.shfile no need of this. - Also remove
add_study_features.sh - Also remove
NoteItem_updates.txtfrom root.
Do these changes and let me know and remember modifies only files related to your issue.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key Changes #158$inline$ and $$block$$ .
Frontend Enhancements
Math Formula Support: Integrated remark-math and rehype-katex to render LaTeX formulas. Supported syntaxes include
Markdown Tables: Enabled GFM-style comparison tables.
Editor Helpers:
Added "∑ Math" and "⊞ Table" helper buttons to insert template syntaxes.
Added a Preview Mode to verify rendering before saving.
New Study Template for quick note structure setup.
Enhanced Media Rendering:
Updated
NoteItem.js
to render images, voice notes, and PDF attachments in the full-view (zoom) modal.
Improved PDF attachment UI with file size and type indicators.
Backend & API Fixes
Notes API Updates: Modified POST /api/notes and PUT /api/notes/[id] to extract and persist the attachments array.
Upload Logic Fix: Corrected a naming inconsistency in the attachment upload form data (changed files to attachment) to match the backend expectations.
Data Persistence: Ensured attachments are correctly stored in the MongoDB
Notes
collection.
Bug Fixes
Resolved a 401/Unauthorized issue in the local dev environment caused by a MongoDB port conflict. Reconfigured the local setup to use a dedicated port (27019) for the project database.
Verification Results
Math Rendering: Verified that complex formulas (e.g., integrals, Einstein's field equations) render correctly via KaTeX.
Table Support: Confirmed that structured markdown tables render into valid HTML tables with proper alignment.
Attachment Flow: Successfully tested the upload, storage, and retrieval of PDF files.
Rendering Preview
Verified Math and Table Rendering
Deployment Notes
Ensure Cloudinary environment variables are set for handling raw resource types (required for PDFs).
MongoDB instance should be running and accessible as per the updated
.env.local
.