UNPKG

ecmarkup

Version:

Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.

102 lines (82 loc) 3.25 kB
<pre class=metadata>toc: false</pre> <emu-biblio href="./xrefTestBiblio.json"></emu-biblio> <emu-clause id="sec-clause-id"> <h1>Clause Title</h1> <!-- local refs to clause --> <emu-xref href="#sec-clause-id">with link text</emu-xref> <emu-xref href="#sec-clause-id"></emu-xref> <emu-xref href="#sec-clause-id" title></emu-xref> <!-- refs to ES6 clause --> <emu-xref href="#sec-notational-conventions">with link text</emu-xref> <emu-xref href="#sec-scope"></emu-xref> <emu-xref href="#sec-additional-syntax" title></emu-xref> <!-- refs to imported biblio clause --> <emu-xref href="#sec-foo">with link text</emu-xref> <emu-xref href="#sec-foo"></emu-xref> <emu-xref href="#sec-foo" title></emu-xref> <!-- refs to local nonterminal --> <emu-xref href="#prod-TestProduction"></emu-xref> <emu-xref href="#prod-TestProduction">with link text</emu-xref> <!-- refs to ES6 nonterminal --> <emu-xref href="#prod-PrimaryExpression"></emu-xref> <!-- refs to local abstract op --> <emu-xref aoid="AbstractOp"></emu-xref> <emu-xref aoid="AbstractOp">the AbstractOp abstract operation</emu-xref> <!-- refs to es6 abstract op --> <emu-xref aoid="ReturnIfAbrupt"></emu-xref> <emu-xref aoid="ReturnIfAbrupt">Return if abrupt</emu-xref> <!-- refs to examples --> <emu-xref href="#example-2"></emu-xref> <emu-xref href="#example-1"></emu-xref> <!-- examples in current clause shouldn't include clause name --> <emu-xref href="#example-1" title></emu-xref> <!-- examples in current clause shouldn't include clause name --> <emu-xref href="#example-3" title></emu-xref> <emu-xref href="#example-2">with link text</emu-xref> <!-- refs to notes --> <emu-xref href="#note-1"></emu-xref> <emu-xref href="#note-1" title></emu-xref> <emu-xref href="#note-2"></emu-xref> <!-- examples in current clause shouldn't include clause name --> <emu-xref href="#note-2" title></emu-xref> <!-- examples in current clause shouldn't include clause name --> <emu-xref href="#note-2">with link text</emu-xref> <!-- refs to figures and tables --> <emu-xref href="#table-1"></emu-xref> <emu-xref href="#figure-1"></emu-xref> <emu-clause id="sec-abstract-op" aoid="AbstractOp"> <h1>AbstractOp</h1> <emu-alg> 1. Return. </emu-alg> <emu-example id="example-2" caption="Foo Caption"> This is an example </emu-example> <emu-example id="example-3" caption="Foo Caption"> This is an example </emu-example> <emu-note id="note-1"> This is another note </emu-note> </emu-clause> <emu-example id="example-1" caption="Foo Caption"> This is an example </emu-example> <emu-note id="note-2"> This is a note! </emu-note> <emu-figure id="figure-1"> this is a figure! </emu-figure> <emu-table id="table-1" caption="An example table"> <table> <thead> <tr><td>Column 1</td><td>Column 2</td></tr> </thead> <tr><td>Value</td><td>Value 2</td></tr> <tr><td>Value</td><td>Value 2</td></tr> <tr><td>Value</td><td>Value 2</td></tr> <tr><td>Value</td><td>Value 2</td></tr> </table> </emu-table> </emu-clause> <emu-grammar> TestProduction :: `np` `np` #1 </emu-grammar>