File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/userscript/src/exporter Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ const transformContent = (
93
93
case 'text' :
94
94
return content . parts ?. join ( '\n' ) || ''
95
95
case 'code' :
96
- return content . text || ''
96
+ return `Code:\n\`\`\`\n ${ content . text } \n\`\`\`` || ''
97
97
case 'execution_output' :
98
- return content . text || ''
98
+ return `Result:\n\`\`\`\n ${ content . text } \n\`\`\`` || ''
99
99
case 'tether_quote' :
100
100
return `> ${ content . title || content . text || '' } `
101
101
case 'tether_browsing_code' :
Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ const transformContent = (
88
88
case 'text' :
89
89
return content . parts ?. join ( '\n' ) || ''
90
90
case 'code' :
91
- return content . text || ''
91
+ return `Code:\n\`\`\`\n ${ content . text } \n\`\`\`` || ''
92
92
case 'execution_output' :
93
- return content . text || ''
93
+ return `Result:\n\`\`\`\n ${ content . text } \n\`\`\`` || ''
94
94
case 'tether_quote' :
95
95
return `> ${ content . title || content . text || '' } `
96
96
case 'tether_browsing_code' :
You can’t perform that action at this time.
0 commit comments