posthtml icon indicating copy to clipboard operation
posthtml copied to clipboard

PostHTML is a tool to transform HTML/XML with JS plugins

Results 20 posthtml issues
Sort by recently updated
recently updated
newest added

### `Details` I think that `null` or `''` should be allowed as a type for cases where you want to remove the matching node using the `tree.match` or `tree.walk`, but...

when i use typescript, the method `process` second arg tip type error ### `Environment` |OS|node|npm/yarn|package| |:-:|:--:|:-:|:------:| |macos|16.13.2|yarn 1.22.18]|0.16.6|

fixes husky hooks (broken since https://github.com/posthtml/posthtml/pull/362) https://typicode.github.io/husky/#/?id=migrate-from-v4-to-v7

RT. ### `Details` I am contributing to one of the posthtml's plugin htmlnano, and I have found https://github.com/posthtml/htmlnano/issues/6. In that feature request, htmlnano needs to implement a feature by removing...

type: question

will be good to add example with `async/await` _Originally posted by @Grawl in https://github.com/posthtml/posthtml/issues/115#issuecomment-595582603_

help wanted
type: docs
scope: api
status: needs docs
semver: patch
priority: low

I was try to use `gulp-posthtml`, to converting URLs in XML files. But it looks like not support self closing tags `` source: ![image](https://user-images.githubusercontent.com/1171691/27375717-9f96efc0-56a2-11e7-84d6-7c918ef01e31.png) result: ![image](https://user-images.githubusercontent.com/1171691/27375725-a2204b7e-56a2-11e7-9908-1e0a915231f7.png) This is part of...

type: feature

Expample: ```js // posthtml_module start var postHTML = function(plugins) { this.plugins = plugins; }; postHTML.prototype.parser = function(html) { return 'OLD' + html; }; // CHANGE postHTML.prototype.process = function(html, options) {...

type: feature
semver: minor
priority: medium
scope: core

`posthtml-renderer` Motivation is possibility to generation special markup in non standard situations. Custom renderer should add method with self name, ex: `posthtml().process(String).svg()`

type: feature
semver: minor
priority: medium
scope: core

Changes made. The latest commit adds a lot of complexity, but nice type inference. I also realized when doing some of this that it's not super clear when a return...

semver: patch
priority: low
scope: tsd
type: disscus

type: feature
semver: minor
scope: parser
priority: low
status: need description