Skip to content

Commit 250ce9c

Browse files
committed
Update
1 parent 586dc73 commit 250ce9c

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

src/as3/e4x.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ package me.diantha.portfolio {
1212
return (
1313
<>
1414
<j:VGroup xmlns:j="jet.components.**" gap={5}>
15-
<!-- markup -->
15+
<!-- some comment -->
16+
<j:Label>
17+
<markdown>
18+
Hi **there**.
19+
</markdown>
20+
</j:Label>
1621
</j:VGroup>
1722
</>
1823
);
@@ -22,4 +27,20 @@ package me.diantha.portfolio {
2227

2328
XML namespaces are used for importing packages solely within the markup, either non-recursive (`q.f.*`) or recursive (`q.f.**`). It is additionally allowed to use lexical names and fully qualified names like `<jet.components.HGroup>` as long as the component name is in scope.
2429

25-
> **Note:** Unlike the E4X standard 2nd edition, markup does not result in `XML` or `XMLList` objects, but rather `ReactNode`; and there is support for `a` attributes without an attribute value, which equals `a={true}`.
30+
> **Note:** Unlike the E4X standard 2nd edition, markup does not result in `XML` or `XMLList` objects, but rather `ReactNode`; and there is support for `a` attributes without an attribute value, which equals `a={true}`.
31+
32+
### Markdown
33+
34+
Use `<markdown>` tags for translating Markdown to HyperText Markup Language (HTML) text.
35+
36+
> **Note:** Tags nested with `<markdown>` must comply with XHTML tags; for instance, use `<br/>` instead of `<br>`.
37+
38+
It is additionally allowed to interpolate HTML code inside a `<markdown>` tag using braces:
39+
40+
```xml
41+
<markdown>
42+
Hi, {personName}
43+
</markdown>
44+
```
45+
46+
> **Note:** Interpolated parts must be in the HTML language (not XHTML or Markdown).

0 commit comments

Comments
 (0)