From 6a49a1914c8ad46af08b8b763feaf7c97bb560fa Mon Sep 17 00:00:00 2001 From: Brian Terlson Date: Thu, 20 Aug 2015 17:00:16 -0700 Subject: [PATCH] Add docs for figure and table --- spec/index.html | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/spec/index.html b/spec/index.html index b9d400bc..011bfa89 100644 --- a/spec/index.html +++ b/spec/index.html @@ -152,6 +152,54 @@

Example

is an abstract operation from ES6

+ +

emu-figure

+

Creates a figure that can be xrefed by ID using the `emu-xref` element.

+

Attributes

+

caption: Optional: Caption for the example

+

informative: Optional: If present, the figure is informative. Otherwise it is normative.

+ +

Example

+

+  <emu-figure caption="Example figure">
+    [[insert some awesome graphic here, maybe something like figure 2]]
+  </emu-figure>
+  
+ + [[insert some awesome graphic here, maybe something like figure 2]] + +
+ + +

emu-table

+

Creates a table that can be xrefed by ID using the `emu-xref` element.

+

Attributes

+

caption: Optional: Caption for the example

+

informative: Optional: If present, the table is informative. Otherwise it is normative.

+ +

Example

+

+  <emu-table caption="Example table">
+    <table>
+      <tr><th>Column 1</th><th>Column 2</th></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>
+      <tr><td>Value</td><td>Value 2</td></tr>
+    </table>
+  </emu-table>
+  
+ + + + + + + +
Column 1Column 2
ValueValue 2
ValueValue 2
ValueValue 2
ValueValue 2
+
+
+

emu-example

Creates an informative example. Examples are numbered based on how many are present in the example's containing clause. Can be xrefed by ID using `emu-xref`.