We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c02067b commit eaa0644Copy full SHA for eaa0644
src/extras/editor/markdownPaste.ts
@@ -141,6 +141,15 @@ function getMarkdown(clipboardData: DataTransfer) {
141
/`[^`]+`/, // Inline code: `code`
142
/^> /m, // Blockquotes: Lines starting with >
143
/```/, // Code blocks: Triple backticks
144
+ /\*\*[^*]+\*\*/, // Bold: **text**
145
+ /\*[^*]+\*/, // Italic: *text*
146
+ /__[^_]+__/, // Bold: __text__
147
+ /_[^_]+_/, // Italic: _text_
148
+ /~~[^~]+~~/, // Strikethrough: ~~text~~
149
+ /\^[^^]+\^/, // Superscript: ^text^
150
+ /~[^~]+~/, // Subscript: ~text~
151
+ /\$\$[\s\S]*?\$\$/, // Block math: $$...$$
152
+ /\$[^$\n]+\$/, // Inline math: $...$
153
];
154
155
for (const pattern of markdownPatterns) {
0 commit comments