all repos — archive/microformats @ 03bc73a64af103b388f50858ad725b9fc6417782

Incomplete Clojure microformats library

Rename variables in parse-h for consistency

Alan Pearce
commit

03bc73a64af103b388f50858ad725b9fc6417782

parent

d7985eb9ef49be79296904e1ad292f9532a3310b

1 file changed, 2 insertions(+), 2 deletions(-)

jump to
M src/microformats/parser.cljsrc/microformats/parser.clj
@@ -131,8 +131,8 @@ (hash-map :properties (merge ((juxt parse-p parse-u parse-dt parse-e))))))
(defn parse-h "Parse h-* classes within a HTML document." - [html] - (mapv parse-children (html/select html [(html/attr-starts :class "h-")]))) + [element] + (mapv parse-children (html/select element [(html/attr-starts :class "h-")]))) (defn parse "Parse a HTML string with microformats"