From ca7467a0a24119d7d59f96cdaad64dcc68ddd2fd Mon Sep 17 00:00:00 2001 From: CatHood0 Date: Sat, 20 Jul 2024 01:45:28 -0400 Subject: [PATCH] fix: bad display of retain examples --- doc/delta_introduction.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/delta_introduction.md b/doc/delta_introduction.md index 599d0dc1..163e9086 100644 --- a/doc/delta_introduction.md +++ b/doc/delta_introduction.md @@ -150,8 +150,8 @@ And we want to apply bold formatting to the word "world." The `Retain` operation This Delta is interpreted as follows: -- **{ "retain": 7 }**: Retains the first **7** characters ("Hello, "). -- **{ "retain": 5**, "attributes": { "bold": true } }: Retains the next **5** characters ("world") and applies the bold attribute. +- `{ "retain": 7 }`: Retains the first **7** characters ("Hello, "). +- `{ "retain": 5, "attributes": { "bold": true } }`: Retains the next **5** characters ("world") and applies the bold attribute. ### Applications of Retain @@ -191,8 +191,8 @@ Example 1: Transformation with Deletions Deltas to combine: -- Delta A: [{insert: "Flutter"}, {retain: 3}, {insert: "Quill"}] -- Delta B: [{retain: 6}, {delete: 4}, {insert: "Editor"}] +- Delta A: `[{insert: "Flutter"}, {retain: 3}, {insert: "Quill"}`] +- Delta B: `[{retain: 6}, {delete: 4}, {insert: "Editor"}`] ```dart