Skip to content


Somya Dwivedi edited this page Oct 26, 2020 · 13 revisions


Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements


HTML attributes

CSS Classes

Special properties

Clone this wiki locally


Adds a JSON-LD script element containing information, which can be useful for search engines.

The following entry in respecConfig can be used to configure JSON-LD support, which currently defaults to false.

var respecConfig = {
  doJsonLd: true,

In addition, you will also need to provide a canonicalUri and a license in your respecConfig for the JSON-LD data to be generated.

When configured, a script element similar to the following will be added:

<script type="application/ld+json">
    "@context": [
        "@vocab": "",
        "@language": "en",
        "w3p": "",
        "foaf": "",
        "datePublished": { "@type": "xsd:date" },
        "inLanguage": { "@language": null },
        "isBasedOn": { "@type": "@id" },
        "license": { "@type": "@id" }
    "id": "",
    "type": ["TechArticle"],
    "name": "Replace me with a real title",
    "inLanguage": "en",
    "license": "",
    "datePublished": "2018-02-22",
    "copyrightHolder": {
      "name": "World Wide Web Consortium",
      "url": ""
    "discussionUrl": "",
    "description": "Abstract \n bla bla",
    "editor": [
        "type": "Person",
        "name": "Your Name",
        "url": ""
    "citation": [
        "id": "",
        "type": "TechArticle",
        "name": "The Dahut Specification Example From the Higher Circle",
        "url": ""