From 458e2ec16aa33564c7498c6041f4ea5e632c2696 Mon Sep 17 00:00:00 2001 From: Jesse Pinho Date: Mon, 7 May 2018 14:17:26 +0200 Subject: [PATCH] Clarify that the `data` property is included for comments --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2641c7..eb3a263 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ The transform function will be called for every node that is parsed by the libra - `next` (node): The node's next sibling - `prev` (node): The node's previous sibling - `parent` (node): The node's parent - - `data` (string): The text content, if the `type` is text + - `data` (string): The text content, if the `type` is `text` or `comment` - `index` (number): The index of the node in relation to it's parent #### Return Types