Skip to content

Commit

Permalink
exxternalize
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellBo committed Oct 6, 2024
1 parent 12438ae commit 4591308
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,14 @@ <h3><a href="#tmg" id="tmg" style="text-decoration: none;">###</a> TeX, Markdown
</script>

<script type="module" class="echo" id="markdown" contenteditable="true">
celine.cell("markdown", ["elements"], async (elements) => {
celine.cell("markdown", async () => {
const elements = [
{ "symbol": "Co", "name": "Cobalt", "number": 27 },
{ "symbol": "Cu", "name": "Copper", "number": 29 },
{ "symbol": "Sn", "name": "Tin", "number": 50 },
{ "symbol": "Pb", "name": "Lead", "number": 82 }
];

const md = await celine.library.md();
return md`
| Name | Symbol | Atomic number |
Expand All @@ -311,18 +318,6 @@ <h3><a href="#tmg" id="tmg" style="text-decoration: none;">###</a> TeX, Markdown
});
</script>

<br />
<script type="module" class="echo" id="elements" contenteditable="true">
celine.cell("elements", () => {
return [
{ "symbol": "Co", "name": "Cobalt", "number": 27 },
{ "symbol": "Cu", "name": "Copper", "number": 29 },
{ "symbol": "Sn", "name": "Tin", "number": 50 },
{ "symbol": "Pb", "name": "Lead", "number": 82 }
];
});
</script>

<script type="module" class="echo" id="dot" contenteditable="true">
celine.cell("dot", async () => {
const dot = await celine.library.dot();
Expand Down

0 comments on commit 4591308

Please sign in to comment.