Skip to content

Commit 233deef

Browse files
devchasdgp1130
authored andcommitted
fix(@angular/cli): fix broken img ref in ai-tutor
replacing the existing link with `INSERT_IMAGE_URL` makes the model insert a working link or the user can insert themselves Fixes #32908 (cherry picked from commit 0572df0)
1 parent 94023f6 commit 233deef

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

  • packages/angular/cli/src/commands/mcp/resources

packages/angular/cli/src/commands/mcp/resources/ai-tutor.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ touch src/app/mock-recipes.ts
660660
id: 1,
661661
name: 'Spaghetti Carbonara',
662662
description: 'A classic Italian pasta dish.',
663-
imgUrl: '[https://via.placeholder.com/300x200.png?text=Spaghetti+Carbonara](https://via.placeholder.com/300x200.png?text=Spaghetti+Carbonara)',
663+
imgUrl: 'INSERT_IMAGE_URL',
664664
ingredients: [
665665
{ name: 'Spaghetti', quantity: 200, unit: 'g' },
666666
{ name: 'Guanciale', quantity: 100, unit: 'g' },
@@ -673,7 +673,7 @@ touch src/app/mock-recipes.ts
673673
id: 2,
674674
name: 'Caprese Salad',
675675
description: 'A simple and refreshing Italian salad.',
676-
imgUrl: '[https://via.placeholder.com/300x200.png?text=Caprese+Salad](https://via.placeholder.com/300x200.png?text=Caprese+Salad)',
676+
imgUrl: 'INSERT_IMAGE_URL',
677677
ingredients: [
678678
{ name: 'Tomatoes', quantity: 4, unit: 'each' },
679679
{ name: 'Fresh Mozzarella', quantity: 200, unit: 'g' },
@@ -717,7 +717,7 @@ touch src/app/mock-recipes.ts
717717
id: 1,
718718
name: 'Spaghetti Carbonara',
719719
description: 'A classic Italian pasta dish.',
720-
imgUrl: '[https://via.placeholder.com/300x200.png?text=Spaghetti+Carbonara](https://via.placeholder.com/300x200.png?text=Spaghetti+Carbonara)',
720+
imgUrl: 'INSERT_IMAGE_URL',
721721
isFavorite: true,
722722
ingredients: [
723723
{ name: 'Spaghetti', quantity: 200, unit: 'g' },
@@ -731,7 +731,7 @@ touch src/app/mock-recipes.ts
731731
id: 2,
732732
name: 'Caprese Salad',
733733
description: 'A simple and refreshing Italian salad.',
734-
imgUrl: '[https://via.placeholder.com/300x200.png?text=Caprese+Salad](https://via.placeholder.com/300x200.png?text=Caprese+Salad)',
734+
imgUrl: 'INSERT_IMAGE_URL',
735735
isFavorite: false,
736736
ingredients: [
737737
{ name: 'Tomatoes', quantity: 4, unit: 'each' },
@@ -786,8 +786,7 @@ touch src/app/mock-recipes.ts
786786
name: 'Spaghetti Carbonara',
787787
description: 'A classic Italian pasta dish.',
788788
authorEmail: 'mario@italy.com', // Add this
789-
imgUrl:
790-
'[https://via.placeholder.com/300x200.png?text=Spaghetti+Carbonara](https://via.placeholder.com/300x200.png?text=Spaghetti+Carbonara)',
789+
imgUrl: 'INSERT_IMAGE_URL',
791790
isFavorite: true,
792791
ingredients: [
793792
{ name: 'Spaghetti', quantity: 200, unit: 'g' },

0 commit comments

Comments
 (0)