From d5f020b9043a4ee2ea318a54182fb4a3af92b3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Garc=C3=ADa=20Garz=C3=B3n?= Date: Sun, 9 Aug 2020 09:31:22 +0200 Subject: [PATCH] readme: fixes on hyperscript docs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf89f01..832b481 100644 --- a/README.md +++ b/README.md @@ -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',