- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 414
 
postProcess
Takes an array of JavaScript functions which ReSpec then runs in order. Each function is called with the ReSpec config object (i.e., the var respecConfig object, plus some additional internal data).
The following examples shows two functions run in order after processing.
function doThing(config){...}
function doOtherThing(config){...}
var respecConfig = {
  // After processing, run the following
  postProcess: [doThing, doOtherThing]
}Note: there are no special requirements or "best practices" for how you process HTML either before or after ReSpec has finished doing its thing. Once ReSpec is finished processing the document, it stops running and you a free to do whatever you like to your document. Having said that, you should follow web development best practices for Web Development when manipulating any generated document (i.e., "it's just HTML, JS, and CSS").
💖 Support ReSpec by becoming a sponsor via Open Collective. 💖
✨ View rendered version of this documentation at https://respec.org/docs/ ✨
- addSectionLinks
 - authors
 - caniuse
 - edDraftURI
 - editors
 - favicon
 - format (markdown)
 - formerEditors
 - github
 - highlightVars
 - isPreview
 - license
 - lint
 - localBiblio
 - logos
 - maxTocLevel
 - mdn
 - modificationDate
 - noTOC
 - otherLinks
 - pluralize
 - postProcess
 - preProcess
 - previousDiffURI
 - previousMaturity
 - previousPublishDate
 - prevRecShortname
 - prevRecURI
 - 
processVersion(Deprecated) - publishDate
 - 
refNote(Deprecated) - shortName
 - specStatus
 - subjectPrefix
 - subtitle
 - testSuiteURI
 - xref
 
- additionalCopyrightHolders
 - 
addPatentNote(Deprecated) - alternateFormats
 - canonicalURI
 - charterDisclosureURI
 - copyrightStart
 - crEnd
 - 
darkMode(deprecated, use dark mode) - doJsonLd
 - errata
 - group
 - implementationReportURI
 - lcEnd
 - level
 - noRecTrack
 - prevED
 - submissionCommentNumber
 - 
wg(Deprecated) - 
wgId(Deprecated) - 
wgPatentPolicy(Deprecated) - 
wgPatentURI(Deprecated) - wgPublicList
 - 
wgURI(Deprecated) 
a11ycheck-punctuationlocal-refs-existno-headingless-sectionsno-http-propsno-unused-varsno-unused-dfnsinformative-dfnprivsec-sectionwpt-tests-exist
Handled by ReSpec for you.
- data-abbr
 - 
data-cite(Not recommended) - data-dfn-for
 - data-dfn-type
 - data-format
 - data-include-format
 - data-include-replace
 - data-include
 - data-link-for
 - data-link-type
 - data-local-lt
 - data-lt-no-plural
 - data-lt-noDefault
 - data-lt
 - data-number
 - data-oninclude
 - data-sort
 - data-tests
 - 
data-transform(Deprecated) - data-type
 - dir
 - lang