Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol
diffdown.com
1# CRELT
2
3Tiny DOM-element creation utility. Exports a single (default) value,
4which is a function that you call with:
5
6 - A tag name string or DOM element.
7
8 - Optionally an attribute object mapping names to values. When the
9 values are strings, they are added to the element with
10 `setAttribute`. When they have another type, they are assigned as
11 regular properties (mostly useful for event handlers via `onclick`
12 and such). When an attribute's value is null or undefined, it is
13 not assigned.
14
15 - Any number of children, which may be null (ignored), strings (added
16 as text nodes), DOM nodes (added), or arrays (each element is added
17 separately).
18
19The function returns a DOM element.
20
21## License
22
23This software is licensed under an MIT license.