Skip to content

Commit

Permalink
readme: fixes on hyperscript docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Aug 9, 2020
1 parent 54ead1e commit d5f020b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,11 @@ Notice the underline, as `class` is a reserved word in Python.
- `str`: it will be added as text
- `etree.Element`: it will be added as child node
- `customblocks.utils.Markdown`: will append parsed markdown (see below)
- Any `tuple`, `list` or iterable will go for the
- Any `tuple`, `list` or iterable: will add each item following previous rules

```python
from customblocks.utils import E, Markdown

def mygenerator(ctx, image):
return (
E('.mytype',
Expand Down

0 comments on commit d5f020b

Please sign in to comment.