Skip to content

Commit c701374

Browse files
authored
Fix problems with table rendering (#1145)
* Fix problems with table rendering * update markdown-to-jsx dependency to 7.7.3 * Remove unnecessary linebreaks for the code editor to work properly
1 parent 700f404 commit c701374

File tree

7 files changed

+58
-60
lines changed

7 files changed

+58
-60
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"js-yaml": "^4.1.0",
3939
"jsonpath": "^1.1.1",
4040
"jszip": "^3.10.1",
41-
"markdown-to-jsx": "^7.6.2",
41+
"markdown-to-jsx": "^7.7.3",
4242
"moment": "2.30.1",
4343
"next": "14.2.14",
4444
"next-sitemap": "^4.2.3",

pages/draft-06/json-hyper-schema-release-notes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ While we knew that there were still major gaps in draft-06, we felt that it was
3131

3232
#### Changes from draft-04 to draft-05
3333

34-
keyword | change | consequence
35-
---- | ---- | ----
34+
| keyword | change | consequence
35+
| ---- | ---- | ----
3636
`"base"` | replaces looking up the nearest "self" link to determine the base URI for `"href"` | if you were relying on "self" links to change the base, set `"base"` explicitly
3737
`"rel"` | "full" relation removed | use ["item"](https://github.com/json-schema-org/json-schema-spec/issues/295)
3838
`"rel"` | "instances" and "create" relations removed | use ["collection"](https://github.com/json-schema-org/json-schema-spec/issues/295)
@@ -43,8 +43,8 @@ keyword | change | consequence
4343

4444
#### Changes from draft-05 to draft-06
4545

46-
keyword | change | consequence
47-
---- | ---- | ----
46+
| keyword | change | consequence
47+
| ---- | ---- | ----
4848
`"method"` | *removed* | for HTTP method proposals, see issues [#73](https://github.com/json-schema-org/json-schema-spec/issues/73) and [#296](https://github.com/json-schema-org/json-schema-spec/issues/296) (use either `"method"` or `"allow"` as an extension keyword if needed); indication of how to use `"schema"` and `"encType"` no longer necessary
4949
`"schema"` | *removed* | use `"hrefSchema"`, `"submissionSchema"`, or `"targetSchema"` |
5050
`"encType"` | *removed* | use `"submissionEncType"` for request bodies; no longer needed for URI query strings

pages/draft-06/json-schema-release-notes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ For more information, see that draft's [migration notes](../../draft-07/json-sch
2121

2222
#### Backwards-incompatible changes
2323

24-
keyword | change | consequence
25-
---- | ---- | ----
24+
| keyword | change | consequence
25+
| ---- | ---- | ----
2626
`"id"` | replaced by `"$id"` | no longer easily confused with instance properties named `"id"`
2727
`"$id"` | replaces `"id"` | behavior is identical, `$` prefix matches the other two core keywords
2828
`"$ref"` | only allowed where a schema is expected | it is now possible to describe instance properties named `"$ref"`
@@ -31,8 +31,8 @@ keyword | change | consequence
3131

3232
#### Additions and backwards-compatible changes
3333

34-
keyword | change | consequence
35-
---- | ---- | ----
34+
| keyword | change | consequence
35+
| ---- | ---- | ----
3636
booleans as schemas | allowable anywhere, not just `"additionalProperties"` and `"additionalItems"` | `true` is equivalent to `{}`, `false` is equivalent to `{"not": {}}`, but the intent is more clear and implementations can optimize these cases more easily
3737
`"propertyNames"` | added | takes a schema which validates the *names* of all properties rather than their values
3838
`"contains"` | added | array keyword that passes validation if its schema validates at least one array item

pages/draft-07/json-schema-release-notes.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ more clearly than before.
2626
* No keywords were removed
2727
* Some keywords were moved from Hyper-Schema, and two of those were renamed
2828

29-
keyword | change | notes
30-
---- | ---- | ----
29+
| keyword | change | notes
30+
| ---- | ---- | ----
3131
[`"$comment"`](../../draft-07/json-schema-core.html#rfc.section.9) | added to Core | Intended for notes to schema maintainers, as opposed to [`"description"`](../../draft-07/json-schema-validation.html#rfc.section.10.1) which is suitable for display to end users
3232
[`"if"`, `"then"`, `"else"`](../../draft-07/json-schema-validation.html#rfc.section.6.6) | added to Validation | explicit conditional schema evaluation
3333
[`"readOnly"`](../../draft-07/json-schema-validation.html#rfc.section.10.3) | moved from Hyper-Schema to Validation | not limited to hypermedia environments
@@ -41,8 +41,8 @@ Note that the `"content*"` keywords do not _require_ validation.
4141

4242
Numerous formats were added, clarified, or restored from older drafts.
4343

44-
format | change | notes
45-
---- | ---- | ----
44+
| format | change | notes
45+
| ---- | ---- | ----
4646
[`"iri"`](../../draft-07/json-schema-validation.html#rfc.section.7.3.5) | added | I18N equivalent of `"uri"`
4747
[`"iri-reference"`](../../draft-07/json-schema-validation.html#rfc.section.7.3.5) | added | I18N equivalent of `"uri-reference"`
4848
[`"uri-template"`](../../draft-07/json-schema-validation.html#rfc.section.7.3.6) | noted IRI support | There is no separate IRI Template standard
@@ -102,8 +102,8 @@ that its use for JSON Schema was not correct. The new guidance for
102102
[what relations to use](../../draft-07/json-schema-core.html#rfc.section.11.1)
103103
to link instances to schemas is:
104104

105-
link relation | change | notes
106-
---- | ---- | ----
105+
| link relation | change | notes
106+
| ---- | ---- | ----
107107
"describedBy" | no change | network-accessible URL
108108
"profile" | removed; use "schema" | opaque identifying URI
109109
"schema" | added | opaque identifying URI

pages/draft/2019-09/release-notes.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ All keywords have now been organized into [vocabularies](../../draft/2019-09/jso
5555

5656
[Core Specification, Section 8](../../draft/2019-09/json-schema-core.html#rfc.section.8)
5757

58-
keyword | change | notes
59-
---- | ---- | ----
58+
| keyword | change | notes
59+
| ---- | ---- | ----
6060
[`$anchor`](../../draft/2019-09/json-schema-core.html#rfc.section.8.2.3) | **new** | Replaces the `#plain-name` form of `$id`, with a different syntax and approach
6161
[`$defs` (renamed from `definitions`)](../../draft/2019-09/json-schema-core.html#rfc.section.8.2.5) | **renamed** | Note that the standard meta-schema still reserves `definitions` for backwards compatibility
6262
[`$id`](../../draft/2019-09/json-schema-core.html#rfc.section.8.2.2) | **changed** | Only URI-references without fragments are allowed; see `$anchor` for a replacement for plain-name fragments; all other fragments in `$id` had undefined behavior previously
@@ -70,8 +70,8 @@ keyword | change | notes
7070

7171
These keywords were formerly found in the Validation Specification.
7272

73-
keyword | change | notes
74-
---- | ---- | ----
73+
| keyword | change | notes
74+
| ---- | ---- | ----
7575
[`dependentSchemas` (split from `dependencies`)](../../draft/2019-09/json-schema-core.html#rfc.section.9.2.2.4) | **split** | This is the schema form of `dependencies`; note that the standard meta-schema still reserves `dependencies` for backwards compatibility
7676
[`unevaluatedItems`](../../draft/2019-09/json-schema-core.html#rfc.section.9.3.1.3) | **new** | Similar to `additionalItems`, but can "see" into subschemas and across references
7777
[`unevaluatedProperties`](../../draft/2019-09/json-schema-core.html#rfc.section.9.3.2.4) | **new** | Similar to `additionalProperties`, but can "see" into subschemas and across references
@@ -82,8 +82,8 @@ The other applicator vocabulary keywords are `items`, `additionalItems`, `proper
8282

8383
[Validation Specification, Section 6](../../draft/2019-09/json-schema-validation.html#rfc.section.6)
8484

85-
keyword | change | notes
86-
---- | ---- | ----
85+
| keyword | change | notes
86+
| ---- | ---- | ----
8787
[`dependentRequired` (split from `dependencies`)](../../draft/2019-09/json-schema-validation.html#rfc.section.6.5.4) | **split** | This is the string array form of `dependencies`; note that the standard meta-schema still reserves `dependencies` for backwards compatibility
8888
[`maxContains` and `minContains`](../../draft/2019-09/json-schema-validation.html#rfc.section.6.4.4) | **new** | Assertion for controlling how many times a subschema must be matched within an array
8989

@@ -102,11 +102,11 @@ In the following charts, the "supported" column refers to whether and (for `2019
102102

103103
**Summary of draft-07 behavior**
104104

105-
supported | configuration | outcome
106-
----------- | ------------- | -------------
107-
no | n/a | not validated
108-
yes | _default_ (on)| inconsistently validated
109-
yes | off | not validated
105+
| supported | configuration | outcome
106+
| ----------- | ------------- | -------------
107+
| no | n/a | not validated
108+
| yes | _default_ (on)| inconsistently validated
109+
| yes | off | not validated
110110

111111
Obviously, each implementation will behave consistently from schema to schema, although some formats may be supported more thoroughly than others despite the wording in the specification. However, complex formats are, in practice, supported to different degrees in each implementation. If they are supported at all.
112112

@@ -120,28 +120,28 @@ The goal with this draft is to make the default behavior predictable, with the i
120120

121121
* An outcome of _vocabulary error_ means that the implementation will refuse to process the schema as it cannot satisfy the vocabulary requirement.
122122

123-
supported | configuration | vocabulary | outcome
124-
----------- | -------------- | ------------- | -------------
125-
no | n/a | false | not validated
126-
no | n/a | true | _vocabulary error_
127-
best effort | _default_ (off)| false | not validated
128-
best effort | _default_ (off)| true | _vocabulary error_
129-
best effort | on | false | best effort validation
130-
best effort | on | true | _vocabulary error_
131-
full syntax | _default_ (off)| false | not validated
132-
full syntax | _default_ (off)| true | full syntax validation
133-
full syntax | on | false | full syntax validation
134-
full syntax | on | true | full syntax validation
123+
| supported | configuration | vocabulary | outcome
124+
| ----------- | -------------- | ------------- | -------------
125+
| no | n/a | false | not validated
126+
| no | n/a | true | _vocabulary error_
127+
| best effort | _default_ (off)| false | not validated
128+
| best effort | _default_ (off)| true | _vocabulary error_
129+
| best effort | on | false | best effort validation
130+
| best effort | on | true | _vocabulary error_
131+
| full syntax | _default_ (off)| false | not validated
132+
| full syntax | _default_ (off)| true | full syntax validation
133+
| full syntax | on | false | full syntax validation
134+
| full syntax | on | true | full syntax validation
135135

136136
Note that, given that almost no draft-07 or earlier implementations have offered strict and complete validation of every single format, it seems unlikely that any implementations will support option 3 option in practice.
137137

138138
Additionally, two new formats were added, and a specification reference was updated:
139139

140-
format | change | notes
141-
---- | ---- | ----
142-
[`"duration"`](../../draft/2019-09/json-schema-validation.html#rfc.section.7.3.1) | **added** | The duration format is from the ISO 8601 ABNF as given in Appendix A of RFC 3339
143-
[`"hostname"` and `"idn-hostname"`](../../draft/2019-09/json-schema-validation.html#rfc.section.7.3.3) | **updated** | Use RFC 1123 instead of RFC 1034; this allows for a leading digit
144-
[`"uuid"`](../../draft/2019-09/json-schema-validation.html#rfc.section.7.3.5) | **added** | A string instance is valid against this attribute if it is a valid string representation of a UUID, according to RFC4122
140+
|format | change | notes
141+
| ---- | ---- | ----
142+
| [`"duration"`](../../draft/2019-09/json-schema-validation.html#rfc.section.7.3.1) | **added** | The duration format is from the ISO 8601 ABNF as given in Appendix A of RFC 3339
143+
| [`"hostname"` and `"idn-hostname"`](../../draft/2019-09/json-schema-validation.html#rfc.section.7.3.3) | **updated** | Use RFC 1123 instead of RFC 1034; this allows for a leading digit
144+
| [`"uuid"`](../../draft/2019-09/json-schema-validation.html#rfc.section.7.3.5) | **added** | A string instance is valid against this attribute if it is a valid string representation of a UUID, according to RFC4122
145145

146146

147147
#### Content Vocabulary
@@ -150,23 +150,23 @@ format | change | notes
150150

151151
These keywords are now specified purely as annotations, and never assertions. Some guidance is provided around how an implementation can optionally offer further automatic processing of this information outside of the validation process.
152152

153-
keyword | change | notes
154-
---- | ---- | ----
155-
[`contentEncoding`](../../draft/2019-09/json-schema-validation.html#rfc.section.8.3) | **updated** | Encodings from RFC 4648 are now allowed, and take precedence over RFC 2045 when there is a difference
156-
[`contentSchema`](../../draft/2019-09/json-schema-validation.html#rfc.section.8.5) | **added** | Schema for use with the decoded content string; note that it is _not_ automatically applied as not all content media types can be understood in advance
153+
| keyword | change | notes
154+
| ---- | ---- | ----
155+
| [`contentEncoding`](../../draft/2019-09/json-schema-validation.html#rfc.section.8.3) | **updated** | Encodings from RFC 4648 are now allowed, and take precedence over RFC 2045 when there is a difference
156+
| [`contentSchema`](../../draft/2019-09/json-schema-validation.html#rfc.section.8.5) | **added** | Schema for use with the decoded content string; note that it is _not_ automatically applied as not all content media types can be understood in advance
157157

158158
#### Meta-Data Vocabulary
159159

160160
[Validation Specification, Section 9](../../draft/2019-09/json-schema-validation.html#rfc.section.9)
161161

162-
keyword | change | notes
163-
---- | ---- | ----
164-
[`deprecated`](../../draft/2019-09/json-schema-validation.html#rfc.section.9.3) | **added** | Used to indicate that a field is deprecated in some application-specific manner
162+
| keyword | change | notes
163+
| ---- | ---- | ----
164+
| [`deprecated`](../../draft/2019-09/json-schema-validation.html#rfc.section.9.3) | **added** | Used to indicate that a field is deprecated in some application-specific manner
165165

166166
#### Hyper-Schema Vocabulary
167167

168168
[Hyper-Schema Specification, Sections 5 and 6](../../draft/2019-09/json-schema-hypermedia.html#rfc.section.5)
169169

170-
keyword | change | notes
171-
---- | ---- | ----
172-
[`rel`](../../draft/2019-09/json-schema-hypermedia.html#rfc.section.6.2.1) | **changed** | Can now be an array of values instead of just a string
170+
| keyword | change | notes
171+
| ---- | ---- | ----
172+
| [`rel`](../../draft/2019-09/json-schema-hypermedia.html#rfc.section.6.2.1) | **changed** | Can now be an array of values instead of just a string

pages/draft/2020-12/release-notes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ Here's how you would covert a schema using `$recursiveRef` to use `$dynamicRef`.
162162
</tr>
163163
<tr>
164164
<td>
165-
166165
```jsonc
167166
// tree schema, extensible
168167
{
@@ -189,7 +188,6 @@ Here's how you would covert a schema using `$recursiveRef` to use `$dynamicRef`.
189188
```
190189
</td>
191190
<td>
192-
193191
```jsonc
194192
// tree schema, extensible
195193
{

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8342,7 +8342,7 @@ __metadata:
83428342
js-yaml: "npm:^4.1.0"
83438343
jsonpath: "npm:^1.1.1"
83448344
jszip: "npm:^3.10.1"
8345-
markdown-to-jsx: "npm:^7.6.2"
8345+
markdown-to-jsx: "npm:^7.7.3"
83468346
moment: "npm:2.30.1"
83478347
next: "npm:14.2.14"
83488348
next-sitemap: "npm:^4.2.3"
@@ -8763,12 +8763,12 @@ __metadata:
87638763
languageName: node
87648764
linkType: hard
87658765

8766-
"markdown-to-jsx@npm:^7.6.2":
8767-
version: 7.6.2
8768-
resolution: "markdown-to-jsx@npm:7.6.2"
8766+
"markdown-to-jsx@npm:^7.7.3":
8767+
version: 7.7.3
8768+
resolution: "markdown-to-jsx@npm:7.7.3"
87698769
peerDependencies:
87708770
react: ">= 0.14.0"
8771-
checksum: 10c0/e4c63c45d860a7fc0b07531bd058e9806ab61dba22c629ef7fc94dda438b35ea351284ea20850726fb5ef8cdfceb0aabbfa05696375d94d0c996cb691706c912
8771+
checksum: 10c0/85b1c91a8d3ae03cfe828c6b76309702a913e681dad5a7e3a5324ec97153d89313be00a0ee423ab1c0bd61781ed181d76d4a54840d715b67756734da24211cf5
87728772
languageName: node
87738773
linkType: hard
87748774

0 commit comments

Comments
 (0)