-
Notifications
You must be signed in to change notification settings - Fork 337
Math and graph integration into Docs (haXathon) #1061
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
Draft
Math-s314
wants to merge
35
commits into
suitenumerique:main
Choose a base branch
from
tidann:final-haXathon
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+48,302
−16,173
Conversation
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
This reverts commit 32462d5.
…ontainer and placeholder elements
…MermaidBlock configurations
…r formatting updates in Mermaid and Latex components
…neLatex component to handle empty formulas correctly
…a handling; introduce catchFocus property in configuration
…nent; log parsed output for debugging
…o clean up console output
- New kind of block similar to LatexBlock (in how it works) - `ChartBlock` plot the function given by the user in the range chosen
- Added new dependencies: @cortex-js/compute-engine, @monaco-editor/react, chart.js, and react-chartjs-2. - Updated existing dependencies in package-lock.json and yarn.lock. - Removed unused textAlignment property from ChartBlock configuration.
- Updated InlineLatexButton to return null if no text is selected in the editor. - Changed icon in SlashMenuItems from "functions" to "line_axis" for better representation.
…cies - Added support for exporting ChartBlock, LatexBlock, and MermaidBlock in PDF format. - Introduced new mapping files: chartBlockPDF.tsx, latexBlockPDF.tsx, and mermaidBlockPDF.tsx. - Updated package dependencies in package.json and corresponding lock files to include tex-to-svg and related packages.
- Introduced a new paste handler in BlockNoteEditor to process pasted Markdown text and update blocks accordingly. - Updated parseMarkdownWithLatex utility to handle additional block types including bullet lists, numbered lists, and headings. - Removed unused lastKeyRef logic in useLatexDetection for cleaner code.
- Integrated SuggestionMenuController to enhance inline LaTeX functionality. - Updated getItems method to fetch menu items based on user input. - Ensured consistent trigger character for LaTeX suggestions in both editor instances.
- Implemented logic to exit editing mode and clear formula when Backspace is pressed with an empty edit value. - Enhanced user interaction by preventing default behavior in this specific case.
…d Chart blocks - Imported new mapping functions for LaTeX, Mermaid, and Chart blocks. - Updated docxDocsSchemaMappings to include these new block types. - Commented out inline content mapping for future implementation.
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.
It won't compile : to test you have to compile
make bootstrap
onmain
before switching to this branch and use thereafter therun development frontend
🌟 Contributors: @tidann, @arkey-dev, @plouil, @Math-s314, @SamuelPerezDuarte, @Withers001
💻 Project of the Hack Days Hackathon
This proposition aims to allow students, professors, researchers and more to benefit from a straightforward implementation of basic math and chart editing features in Docs.
Main features
For the future