Skip to content

Commit

Permalink
usecases/datadef.md: attempt to fix code formatting (cue-lang#152)
Browse files Browse the repository at this point in the history
There's a nested <pre> here and I don't understand the generation logic of it. I'm changing these code blocks into markdown-style backtick blocks and converting tabs to spaces to see if that fixes it.
  • Loading branch information
NReilingh committed Mar 12, 2021
1 parent c73fece commit 9d7932a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions content/en/docs/usecases/datadef.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,26 +162,28 @@ Compare the following two equivalent schema definitions:
{{< blocks/section color="white" >}}
<div class="col">
CUE
{{< highlight none >}}

```
// Definitions.
// Info describes...
Info: {
// Name of the adapter.
name: string
// Name of the adapter.
name: string
// Templates.
templates?: [...string]
// Templates.
templates?: [...string]
// Max is the limit.
max?: uint & <100
// Max is the limit.
max?: uint & <100
}
{{< /highlight >}}
```
</div>

<div class="col">
OpenAPI
{{< highlight json >}}

```json
{
"openapi": "3.0.0",
"info": {
Expand Down Expand Up @@ -221,7 +223,7 @@ OpenAPI
}
}
}
{{< /highlight >}}
```
</div>
{{< /blocks/section >}}

Expand Down

0 comments on commit 9d7932a

Please sign in to comment.