You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pasting code-like text such as `5 * width * height` was italicized by StarterKit's lenient mark
paste rules. Own emphasis with the strict CommonMark parser instead:
- Disable StarterKit's mark paste rules (`enablePasteRules: false`); markdown paste is handled by
MarkdownPaste (marked) and rich paste by real HTML tags. Input rules (typing) are unaffected.
- Split the paste gate by provenance: structural markdown always parses (faithful GFM tables and
escaping), while inline-only marks parse for a plain-text paste but defer to a rich HTML sibling so
a copied table isn't flattened.
Emphasis (`*_ ** __ ~~ ``) renders; `5 * width`, `*args`, and `snake_case` stay literal — matching
Obsidian/Linear.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/markdown-paste.test.ts
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -250,6 +250,7 @@ export function LoadedRichMarkdownEditor({
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-field.tsx
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,7 @@ function LoadedRichMarkdownField({
0 commit comments