fix(core): wrap code in ai chat (#10108)

[BS-2540](https://linear.app/affine-design/issue/BS-2540/ai-chat-中-code-block-需要默认换行)
This commit is contained in:
donteatfriedrice
2025-02-12 09:43:52 +00:00
parent e350ba4a9c
commit 30612de1ad
12 changed files with 43 additions and 15 deletions

View File

@@ -1980,6 +1980,7 @@ describe('html to snapshot', () => {
flavour: 'affine:code',
props: {
language: 'python',
wrap: false,
text: {
'$blocksuite:internal:text$': true,
delta: [

View File

@@ -2481,6 +2481,7 @@ describe('markdown to snapshot', () => {
flavour: 'affine:code',
props: {
language: 'python',
wrap: false,
text: {
'$blocksuite:internal:text$': true,
delta: [
@@ -2526,6 +2527,7 @@ describe('markdown to snapshot', () => {
flavour: 'affine:code',
props: {
language: 'python',
wrap: false,
text: {
'$blocksuite:internal:text$': true,
delta: [
@@ -2577,6 +2579,7 @@ describe('markdown to snapshot', () => {
flavour: 'affine:code',
props: {
language: 'python',
wrap: false,
text: {
'$blocksuite:internal:text$': true,
delta: [
@@ -2628,6 +2631,7 @@ describe('markdown to snapshot', () => {
flavour: 'affine:code',
props: {
language: 'python',
wrap: false,
text: {
'$blocksuite:internal:text$': true,
delta: [

View File

@@ -51,6 +51,7 @@ describe('notion html to snapshot', () => {
flavour: 'affine:code',
props: {
language: 'Plain Text',
wrap: false,
text: {
'$blocksuite:internal:text$': true,
delta: [