removeOnSave - speced/respec GitHub Wiki

.removeOnSave

Marks an element to be removed when the document is exported to static HTML (via "Save as HTML"). Use this for content that is useful during authoring but should not appear in the published spec.

Usage

<div class="removeOnSave">
  <p class="ednote">Remember to update the SotD before publication.</p>
</div>
<p>
  See <a href="https://respec.org/xref" class="removeOnSave">(xref search)</a>
  for resolving ambiguous terms.
</p>

Notes

  • The ReSpec pill itself uses removeOnSave — it disappears from saved HTML
  • The caniuse and mdn widgets also use removeOnSave by default (configurable via removeOnSave option)
  • Content with class="removeOnSave" is fully removed — not just hidden — in the exported HTML
⚠️ **GitHub.com Fallback** ⚠️