Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
metaory committed Aug 21, 2024
1 parent 7bf6cc2 commit bc02073
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 22 deletions.
Binary file modified .github/assets/preview-html.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/assets/preview-json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/assets/preview-social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 20 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">
<h1>
MARKUP.json
mʌrκup.json
</h1>
<img alt="logo" src="https://raw.githubusercontent.com/metaory/markup.json/master/.github/assets/markup.svg" width="200px">
<hr />
Expand Down Expand Up @@ -51,23 +51,20 @@ cat tests/mini.json

```json
[
"Hello World 🦊",
["h1", "MARKUP.json"],
["hr"],
"DOM tree",
["h4", "representation", "in compact JSON"],
["h1", "mʌrκup.json"],
["br"],
["h4", "DOM tree", "representation", "in compact JSON"],
[
"a",
{
"align": "center",
"class": "primary",
"data-planet-id": "92432",
"href": ["search?", { "q": "foo", "type": "bar" }],
"id": "hoge",
"style": { "color": "indigo", "background": "fuchsia" }
},
"🔥 First Class Attribute Strings"
]
],
"draft spec 0.7"
]
```

Expand All @@ -85,23 +82,24 @@ const html = markup(content)
```

```html
Hello World 🦊
<h1>MARKUP.json</h1>
<hr />
DOM tree
<h1>
mʌrκup.json
</h1>
<br />
<h4>
representation
in compact JSON
DOM tree
representation
in compact JSON
</h4>
<a align="center"
class="primary"
data-planet-id="92432"
href="search?q=foo&type=bar&"
id="hoge"
style="color:indigo; background:fuchsia;"
<a
class="primary"
data-planet-id="92432"
href="search?q=foo&type=bar&"
style="color:indigo; background:fuchsia;"
>
🔥 First Class Attribute Strings
🔥 First Class Attribute Strings
</a>
draft spec 0.7
```

---
Expand Down
18 changes: 18 additions & 0 deletions test/sociax.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<h1>
mʌrκup.json
</h1>
<br />
<h4>
DOM tree
representation
in compact JSON
</h4>
<a
class="primary"
data-planet-id="92432"
href="search?q=foo&type=bar&"
style="color:indigo; background:fuchsia;"
>
🔥 First Class Attribute Strings
</a>
draft spec 0.7
16 changes: 16 additions & 0 deletions test/sociax.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
["h1", "mʌrκup.json"],
["br"],
["h4", "DOM tree", "representation", "in compact JSON"],
[
"a",
{
"class": "primary",
"data-planet-id": "92432",
"href": ["search?", { "q": "foo", "type": "bar" }],
"style": { "color": "indigo", "background": "fuchsia" }
},
"🔥 First Class Attribute Strings"
],
"draft spec 0.7"
]

0 comments on commit bc02073

Please sign in to comment.