Skip to content

Commit 4658446

Browse files
committed
Format raw strings as blocks
1 parent c153dc7 commit 4658446

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

readme.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ jq's full filter language is available, including pipes, array/object constructi
7373
built-in functions, conditionals, and reductions:
7474

7575
```csharp
76-
using var doc = JsonDocument.Parse("""
76+
using var doc = JsonDocument.Parse(
77+
"""
7778
{
7879
"orders": [
7980
{ "id": 1, "total": 42.5, "status": "paid" },
@@ -98,7 +99,8 @@ Console.WriteLine(results.Single()); // 142.4
9899
Use object construction to project, rename, or combine fields from the input:
99100

100101
```csharp
101-
using var doc = JsonDocument.Parse("""
102+
using var doc = JsonDocument.Parse(
103+
"""
102104
{
103105
"user": { "id": 1, "name": "Alice", "email": "alice@example.com" },
104106
"role": "admin"
@@ -117,7 +119,8 @@ Use the alternative operator `//` to supply a fallback when a field is missing o
117119
and the optional operator `?` to silence errors on mismatched types:
118120

119121
```csharp
120-
using var doc = JsonDocument.Parse("""
122+
using var doc = JsonDocument.Parse(
123+
"""
121124
[
122125
{ "name": "Alice", "email": "alice@example.com" },
123126
{ "name": "Bob" },
@@ -145,7 +148,8 @@ Built-in functions like `map`, `select`, `sort_by`, and `group_by` make it easy
145148
slice and reshape collections:
146149

147150
```csharp
148-
using var doc = JsonDocument.Parse("""
151+
using var doc = JsonDocument.Parse(
152+
"""
149153
[
150154
{ "name": "Alice", "dept": "Engineering", "salary": 95000 },
151155
{ "name": "Bob", "dept": "Marketing", "salary": 72000 },

0 commit comments

Comments
 (0)