We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing a plain text node results in an empty list. Current behavior:
const lib = require("html-parse-stringify2"); const nodes = lib.parse("Hello, world!"); nodes.length === 0;
Expected behavior:
const lib = require("html-parse-stringify2"); const nodes = lib.parse("Hello, world!"); nodes.length === 1; nodes[0].type === "text"; nodes[0].content === "Hello, world!";
The simplest workaround is to wrap in a container:
const parse = function(html){ return lib.parse("<top>" + html + "</top>")[0].children; };
The text was updated successfully, but these errors were encountered:
This is resolved by #9 and a test case added here: d2b6a94. Thanks for the feedback! Sorry for the slow response!
Sorry, something went wrong.
No branches or pull requests
Parsing a plain text node results in an empty list. Current behavior:
Expected behavior:
The simplest workaround is to wrap in a container:
The text was updated successfully, but these errors were encountered: