Skip to content

Commit

Permalink
Change appendix heading pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesrosiers committed Nov 7, 2024
1 parent bb002f1 commit 3d24c08
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ features they make available to you.
- [remark-headings](/json-schema-org/json-schema-spec/blob/main/remark-headings.js)
-- A collection of enhancements for headings.
- Adds hierarchical section numbers to headings.
- Use the `[Appendix]` prefix on headings that should be numbered as an
- Use the `%appendix%` prefix on headings that should be numbered as an
appendix.
- Adds id anchors to headers that don't have one
- Example: `#section-2-13`
Expand Down
2 changes: 1 addition & 1 deletion remark/remark-headings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { toString as nodeToString } from "mdast-util-to-string";
const defaultOptions = {
startDepth: 1,
skip: [],
appendixToken: "[Appendix]",
appendixToken: "%appendix%",
appendixPrefix: "Appendix"
};

Expand Down
12 changes: 6 additions & 6 deletions specs/jsonschema-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ Bray, T., Ed., Hollander, D., Ed., Layman, A., Ed., and R. Tobin, Ed.,
"Namespaces in XML 1.1 (Second Edition)", August 2006,
<<http://www.w3.org/TR/2006/REC-xml-names11-20060816>>.

## [Appendix] Schema identification examples {#idexamples}
## %appendix% Schema identification examples {#idexamples}

Consider the following schema, which shows `$id` being used to identify both the
root schema and various subschemas, and `$anchor` being used to define plain
Expand Down Expand Up @@ -2258,7 +2258,7 @@ Document location `/$defs/C`:
- base IRI of enclosing (root.json) resource plus fragment:
`https://example.com/root.json#/$defs/C`

## [Appendix] Manipulating schema documents and references
## %appendix% Manipulating schema documents and references

Various tools have been created to rearrange schema documents based on how and
where references (`$ref`) appear. This appendix discusses which use cases and
Expand Down Expand Up @@ -2300,7 +2300,7 @@ scope of this specification to determine or provide a set of safe `$ref` removal
transformations, as they depend not only on the schema structure but also on the
intended usage.

## [Appendix] Example of recursive schema extension {#recursive-example}
## %appendix% Example of recursive schema extension {#recursive-example}

Consider the following two schemas describing a simple recursive tree structure,
where each node in the tree can have a "data" field of any type. The first
Expand Down Expand Up @@ -2394,7 +2394,7 @@ of the node schema objects were moved under `$defs`. It is the matching
`$dynamicAnchor` values which tell us how to resolve the dynamic reference, not
any sort of correlation in JSON structure.

## [Appendix] References and generative use cases
## %appendix% References and generative use cases

While the presence of references is expected to be transparent to validation
results, generative use cases such as code generators and UI renderers often
Expand Down Expand Up @@ -2444,7 +2444,7 @@ instance of a distinct class.
This style of usage requires the annotation to be in the same object as the
reference, which must be recognizable as a reference.

## [Appendix] Acknowledgments
## %appendix% Acknowledgments

Thanks to Gary Court, Francis Galiegue, Kris Zyp, Geraint Luff, and Henry
Andrews for their work on the initial drafts of JSON Schema.
Expand All @@ -2454,7 +2454,7 @@ Bowman, Gowry Sankar, Donald Pipowitch, Dave Finlay, Denis Laxalde, Phil
Sturgeon, Shawn Silverman, and Karen Etheridge for their submissions and patches
to the document.

## [Appendix] Change Log[^19]
## %appendix% Change Log[^19]

### draft-bhutton-json-schema-next
- Use IRIs instead of URIs, including allowing unicode in plain-name fragments
Expand Down
4 changes: 2 additions & 2 deletions specs/jsonschema-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ draft-bhutton-json-schema-01, June 2022,
Hoehrmann, B., "Scripting Media Types", RFC 4329, DOI 10.17487/RFC4329, April
2006, <<https://www.rfc-editor.org/info/rfc4329>>.

## [Appendix] Acknowledgments
## %appendix% Acknowledgments

Thanks to Gary Court, Francis Galiegue, Kris Zyp, Geraint Luff, and Henry
Andrews for their work on the initial drafts of JSON Schema.
Expand All @@ -896,7 +896,7 @@ Bowman, Gowry Sankar, Donald Pipowitch, Dave Finlay, Denis Laxalde, Phil
Sturgeon, Shawn Silverman, and Karen Etheridge for their submissions and patches
to the document.

## [Appendix] Change Log[^6]
## %appendix% Change Log[^6]

- *draft-next*
- Use IRIs instead of URIs
Expand Down
2 changes: 1 addition & 1 deletion specs/proposals/propertyDependencies-adr.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ cases carried a lower priority.
- Properties with non-string values cannot be supported using this keyword and
the `allOf`-`if`-`then` pattern must still be used.

## [Appendix] Problems With Existing Patterns {#problems}
## %appendix% Problems With Existing Patterns {#problems}

### `oneOf`/`anyOf`

Expand Down
2 changes: 1 addition & 1 deletion specs/proposals/propertyDependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ vocabulary](../jsonschema-core.md#applicators).
}
```

## [Appendix] Change Log
## %appendix% Change Log

- \[March 2021\] - Initially proposed
- \[October 2021\] Added to specification document
Expand Down
4 changes: 2 additions & 2 deletions specs/proposals/proposal-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ For example
```
-->

## [Appendix] Change Log
## %appendix% Change Log

- \[MMMM YYYY\] Created

## [Appendix] Champions
## %appendix% Champions

| Champion | Company | Email | URI |
| -------------------------- | ------- | ----------------------- | -------------------------------- |
Expand Down
4 changes: 2 additions & 2 deletions specs/proposals/vocabularies.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ worth the time and effort to fill in this section just yet. As such, please
read the above sections for loose requirements. For tighter requirements,
please assume conformance with the 2020-12 Core and Validation specifications.*

## [Appendix] Change Log
## %appendix% Change Log

- 2024-06-10 - Created

## [Appendix] Champions
## %appendix% Champions

| Champion | Company | Email | URI |
| ----------- | ------- | ------------------------------ | ------------------------------- |
Expand Down

0 comments on commit 3d24c08

Please sign in to comment.