Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / .rehyperc
Schema registry

.rehyperc

A rehype configuration file

.rehyperc.rehyperc.json.rehyperc.yaml.rehyperc.yml

Check your file against this schema

Opens the validator with this schema already loaded. Paste your .rehyperc and it validates in your browser — nothing is uploaded.

Validate a .rehyperc → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
pluginsany
settingsobject
settings.fragmentbooleanSpecify whether to parse a fragment, instead of a complete document. In document mode, unopened html, head, and body elements are opened in just the right places.
default: false
settings.spaceenumWhich space the document is in. If an svg element is found in the HTML space, parse automatically switches to the SVG space when entering the element, and switches back when exiting. Note: make sure to set fragment: true if space: 'svg'.
default: "html"
one of: "svg", "html"
settings.emitParseErrorsbooleanEmit parse errors while parsing on the vfile. Setting this to true starts emitting HTML parse errors. Specific rules can be turned off by setting them to false (or 0). The default, when emitParseErrors: true, is true (or 1), and means that
default: false
settings.verbosebooleanPatch extra positional information. If specified, the following element:
default: false
settings.entitiesobjectConfiguration for stringify-entities. Do not use escapeOnly, attribute, or subset (toHtml already passes those, so they won't work). However, useNamedReferences, useShortestReferences, and omitOptionalSemicolons are all fine.
default: {}
settings.entities.useNamedReferencesbooleanPrefer named character references (&) where possible.
default: false
settings.entities.useShortestReferencesbooleanPrefer the shortest possible reference, if that results in less bytes.
default: false
settings.entities.omitOptionalSemicolonsbooleanWhether to omit semicolons when possible.
default: false
settings.voidsarray<string>Tag names of elements to serialize without closing tag. Not used in the SVG space.
settings.upperDoctypebooleanUse a <!DOCTYPE… instead of <!doctype…. Useless except for XHTML.
default: false
settings.quoteenumPreferred quote to use.
default: "\""
one of: "\"", "'"
settings.quoteSmartbooleanUse the other quote if that results in less bytes.
default: false
settings.preferUnquotedbooleanLeave attributes unquoted if that results in less bytes. Not used in the SVG space.
default: false
settings.omitOptionalTagsbooleanOmit optional opening and closing tags. For example, in <ol><li>one</li><li>two</li></ol>, both </li> closing tags can be omitted. The first because it's followed by another li, the last because it's followed by nothing. Not used in the
default: false
settings.collapseEmptyAttributesbooleanCollapse empty attributes: get class instead of class="". Note: boolean attributes, such as hidden, are always collapsed. Not used in the SVG space.
default: false
settings.closeSelfClosingbooleanClose self-closing nodes with an extra slash (/): <img /> instead of <img>. See tightSelfClosing to control whether a space is used before the slash. Not used in the SVG space.
default: false
settings.closeEmptyElementsbooleanClose SVG elements without any content with slash (/) on the opening tag instead of an end tag: <circle /> instead of <circle></circle>. See tightSelfClosing to control whether a space is used before the slash. Not used in the HTML space.
default: false
settings.tightCommaSeparatedListsbooleanJoin known comma-separated attribute values with just a comma (,), instead of padding them on the right as well (,·, where · represents a space).
default: false
settings.tightAttributesbooleanJoin attributes together, without whitespace, if possible: get class="a b"title="c d" instead of class="a b" title="c d" to save bytes. Note: creates invalid (but working) markup. Not used in the SVG space.
default: false
settings.tightDoctypebooleanDrop unneeded spaces in doctypes: <!doctypehtml> instead of <!doctype html> to save bytes. Note: creates invalid (but working) markup.
default: false
settings.bogusCommentsbooleanUse "bogus comments" instead of comments to save byes: <?charlie> instead of <!--charlie-->. Note: creates invalid (but working) markup.
default: false
settings.allowParseErrorsbooleanDo not encode characters which cause parse errors (even though they work), to save bytes. Note: creates invalid (but working) markup. Not used in the SVG space.
default: false
settings.allowDangerousHtmlbooleanAllow raw nodes and insert them as raw HTML. When falsey, encodes raw nodes. Note: Only set this if you completely trust the content.
default: false

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas