Closed arrlancore closed 1 year ago
@arrlancore is attempting to deploy a commit to the Elegance Team on Vercel.
A member of the Team first needs to authorize it.
Here is the testing text that I use for:
# Welcome to Test Paste MD
# H1 Header Example
## H2 Header Example
### H3 Header Example
***
#### H4 Header Example `h4`
##### H5 Header Example `h5`
###### H6 Header Example `h6`
---
## Paragraphs
This is a sample paragraph. It includes text that is **bold**, *italic*, and ~~strikethrough~~. We can also include `inline code`.
## [Links](http://example.com)
Here is an [inline link](http://example.com).
## Image
![Alt text](https://dummyimage.com/600x250/333/fff)
___
## Lists
### Unordered List
- Item 1
- Item 2
### Ordered List
1. First item
2. Second item [link](http://example.com)
## Task Lists
- [x] Completed task `done`
- [ ] Incomplete task
## Blockquotes
> This is a single-line blockquote.
> This is a multiline blockquote. It spans **bold**
> multiple lines to demonstrate this capability.
## Fenced Code Block
```javascript
console.log('Hello, world 1');
console.log('Hello, world 2');```
good man
@arrlancore first of all, thank you so much for the PR – huge kudos to you for taking the effort here!
We're actually using the amazing https://github.com/aguingand/tiptap-markdown package by @aguingand for this so was able to enable this in a one-line PR over at #191.
Highly recommend you taking this over to the tiptap-markdown
package and see if there's anything that can be improved there though!
Ah I see, I dont actually check the internal lib like tiptap markdown. I just test the current version at novel.sh, checking issue and PR. But I like if there already have one-line solution and it's also better approach, while I also learn how it work behind the scene.
Btw is there any plan to support table for the editor @steven-tey ? I think we can use tiptap table extention for it. And I will be happy to work on it.
This pull request introduces an initial feature that enables users to paste text in Markdown format directly into the editor (like notion editor). This enhancement aims to improve the user experience by allowing seamless integration and content transfer between Markdown files to novel.
The current implementation covers all basic Markdown formats including:
[x] Headings
#
to######
for heading levels 1 to 6.[x] Bold Text
**bold text**
to make text bold.[x] Italic Text
*italic text*
to make text italic.[x] Images
![alt text](image URL)
format.[x] Links
[link text](URL)
format.[x] Inline Code
`code`
to display inline code.[x] Strikethrough
~~strikethrough~~
to strike through the text.[x] Unordered Lists
*
or-
followed by a space for unordered list items.[x] Ordered Lists
1.
followed by a space for ordered list items.[x] Blockquotes
>
at the start of the line to create a blockquote.[x] Horizontal Rules
*
,-
, or_
to create a horizontal rule.[x] Fenced Code Blocks
[x] Checklists
- [ ]
for unchecked and- [x]
for checked items.Before
After