Reference ยท NPL
<npl-directive>
NPL element
You write the instruction, and optionally a longer note, inside this element. The page shows it as a small chip the reader can spot while scanning.
Example
npl-directive.html
source
1
<npl-directive glyph="๐ฎ" kind="directive" qualifier="style">
2
be terse | because the reader is skimming
3
</npl-directive>
render
Live render boots with JavaScript โ the authored source is alongside.
variant: kind="prefix"
The prefix form of the source grammar โ the โค arrow renders between glyph and instruction.
variant: kind="prefix"
npl-directive-prefix.html
source
1
<npl-directive glyph="โก" kind="prefix">cite sources</npl-directive>
render
Live render boots with JavaScript โ the authored source is alongside.
variant: minimal
Glyph and instruction only โ no qualifier, no elaboration.
variant: minimal
npl-directive-minimal.html
source
1
<npl-directive glyph="๐">never print secret values</npl-directive>
render
Live render boots with JavaScript โ the authored source is alongside.
Source: spec/schema/npl/npl-directive.md