posthtml-parser
posthtml-parser copied to clipboard
Parse HTML/XML to PostHTMLTree
- Change the way HTML text nodes are stored: use objects instead of strings since strings cannot accept new properties - Populate the `parent` property when generating the AST Partially...
Have the same issue, I want to add a new node. Maybe add some method for creating a node to the core library? More "legal" way. By now, I use...
First of all, thank you for PostHTML and its companion projects! I am currently working on a plugin that needs frequent access to parent nodes. I would like to propose...
https://github.com/posthtml/posthtml-parser/blob/7081062588fedff14fb3b89a1952325c91fd2a38/src/index.ts#L20
With [email protected] & [email protected], the following works just fine: ```html — Github ``` ```html How to use posthtml-extend Read the documentation ``` With [email protected] & posthtml-extend@**0.5.1**, it errors: ```text [posthtml-extend]...
The correct behavior for the parser would be throwing an error in the case where unclosed tags are met, instead of silently returning wrongly parsed HTML. Otherwise that's really confusing...
- fixed a security Dependabot alert on `braces` - updated GitHub workflow - updated readme