Add live link functionality and enhance Markdown editor features

- Implemented live link support in the Markdown editor, allowing users to click on links and open them in a new tab.
- Added keybinding (Ctrl/⌘ + Enter) to open links under the cursor.
- Introduced visual styles for live links to enhance user experience.
- Enhanced selection utilities to check for intersection with selections.
- Created a custom keymap for Markdown editing, including shortcuts for bold, italic, and fenced code blocks.
- Improved code block handling with line numbering and copy buttons for easy access.
- Added functionality to hide Markdown delimiters in live preview mode.
- Refactored and organized code for better readability and maintainability.
This commit is contained in:
2025-09-07 20:00:25 +02:00
parent d344e25d6b
commit 8ca7e685cc
14 changed files with 1848 additions and 4796 deletions
+11 -2
View File
@@ -20,9 +20,18 @@
"storybook:build": "storybook build"
},
"dependencies": {
"@mantine/core": "^8.1.2",
"@codemirror/commands": "^6.8.1",
"@codemirror/lang-markdown": "^6.3.4",
"@codemirror/language": "^6.11.3",
"@codemirror/language-data": "^6.5.1",
"@codemirror/state": "^6.5.2",
"@codemirror/theme-one-dark": "^6.1.3",
"@codemirror/view": "^6.38.2",
"@lezer/highlight": "^1.2.1",
"@mantine/core": "^8.2.8",
"@mantine/hooks": "^8.1.2",
"@mdxeditor/editor": "^3.42.0",
"codemirror": "^6.0.2",
"mathjax-full": "^3.2.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-router-dom": "^7.6.2"