Repository navigation
Commit 6badb57
committed
Support nested code blocks in pasted text symbols by using dynamic backtick fences
- if pasted text/website (then inlined in prompt) has triple backticks in it (code blocks) it should be placed within four backticks
├── apps
│ └── editor
│ └── src
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-paste-url.ts
│ │ │ ├── handle-save-prompt-pasted-text.ts
│ │ │ └── utils
│ │ │ └── build-prompt-payload.ts
│ │ ├── prompt-view-provider.ts
│ │ └── utils
│ │ ├── persistent-text-storage.ts
│ │ ├── symbols
│ │ │ ├── pasted-text
│ │ │ │ └── replace-pasted-text-symbol.ts
│ │ │ ├── replace-symbols.ts
│ │ │ └── website
│ │ │ └── replace-website-symbol.ts
│ │ └── website-fetcher.ts
│ ├── frontend
│ │ └── hooks
│ │ └── use-prompt
│ │ └── use-prompt.ts
│ └── types
│ └── messages.ts
└── packages
└── ui
└── src
└── components
└── editor
└── common
└── prompts
└── PromptField
└── hooks
└── use-handlers
└── handle-paste.ts1 parent 81d319f commit 6badb57
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
- apps/editor/src/views/prompt/backend/utils/symbols/pasted-text
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments