data number - speced/respec GitHub Wiki

data-number

Applies to: <p class="issue">, <div class="issue">

Links an inline issue box to a specific GitHub issue number. Requires github to be configured. The issue is titled "Issue N" with a link to the GitHub issue thread.

Usage

<p class="issue" data-number="42">
  <!-- ReSpec fetches and displays the content of issue #42 -->
</p>

Notes

  • When data-number is set, ReSpec fetches the issue content from GitHub and embeds it automatically
  • The element can be left empty — GitHub content is inserted by ReSpec
  • Without data-number, you can still use class="issue" for inline editorial notes without a GitHub link
  • See issue for full documentation of issue boxes