|
1 | | -[![NPM][npm]][npm-url] |
2 | | -[![Tests][build]][build-url] |
3 | | -[![Coverage][cover]][cover-url] |
4 | | -[![Standard Code Style][code-style]][code-style-url] |
5 | | - |
6 | 1 | # PostHTML <img align="right" width="220" height="200" title="PostHTML" src="http://posthtml.github.io/posthtml/logo.svg"> |
7 | 2 |
|
8 | 3 | PostHTML is a tool for transforming HTML/XML with JS plugins. PostHTML itself is very small. It includes only a HTML parser, a HTML node tree API and a node tree stringifier. |
9 | 4 |
|
10 | 5 | All HTML transformations are made by plugins. And these plugins are just small plain JS functions, which receive a HTML node tree, transform it, and return a modified tree. |
11 | 6 |
|
12 | | -For more detailed information about PostHTML in general take a look at the [docs][docs-url]. |
| 7 | +For more detailed information about PostHTML in general take a look at the [docs](https://github.com/posthtml/posthtml/tree/master/docs). |
13 | 8 |
|
14 | 9 | ### Dependencies |
15 | 10 |
|
16 | | -| Name | Status | Description | |
17 | | -|:----:|:------:|:-----------:| |
18 | | -|[posthtml-parser][parser]|[![npm][parser-badge]][parser-npm]| Parser HTML/XML to PostHTMLTree | |
19 | | -|[posthtml-render][render]|[![npm][render-badge]][render-npm]| Render PostHTMLTree to HTML/XML | |
20 | | - |
21 | | - |
22 | | -[docs]: https://github.com/posthtml/posthtml/blob/master/docs |
23 | | - |
24 | | -[parser]: https://github.com/posthtml/posthtml-parser |
25 | | -[parser-badge]: https://img.shields.io/npm/v/posthtml-parser.svg |
26 | | -[parser-npm]: https://npmjs.com/package/posthtml-parser |
27 | | - |
28 | | -[render]: https://github.com/posthtml/posthtml-render |
29 | | -[render-badge]: https://img.shields.io/npm/v/posthtml-render.svg |
30 | | -[render-npm]: https://npmjs.com/package/posthtml-render |
| 11 | +| Name | Description | |
| 12 | +|:----:|:-----------:| |
| 13 | +|[posthtml-parser](https://github.com/posthtml/posthtml-parser)| Parser HTML/XML to PostHTMLTree | |
| 14 | +|[posthtml-render](https://github.com/posthtml/posthtml-render)| Render PostHTMLTree to HTML/XML | |
31 | 15 |
|
32 | 16 | ## Create to your project |
33 | 17 |
|
@@ -334,17 +318,9 @@ posthtml().process(html, { parser: pug(options) }).then((result) => result.html) |
334 | 318 |
|
335 | 319 | | Name |Status|Description| |
336 | 320 | |:-----|:-----|:----------| |
337 | | -|[posthtml-pug][pug]|[![npm][pug-badge]][pug-npm]|Pug Parser| |
338 | | -|[sugarml][sugar]|[![npm][sugar-badge]][sugar-npm]|SugarML Parser| |
339 | | - |
| 321 | +|[posthtml-pug](https://github.com/posthtml/posthtml-pug)|Pug Parser| |
| 322 | +|[sugarml](https://github.com/posthtml/sugarml)|SugarML Parser| |
340 | 323 |
|
341 | | -[pug]: https://github.com/posthtml/posthtml-pug |
342 | | -[pug-badge]: https://img.shields.io/npm/v/posthtml-pug.svg |
343 | | -[pug-npm]: https://npmjs.com/package/posthtml-pug |
344 | | - |
345 | | -[sugar]: https://github.com/posthtml/sugarml |
346 | | -[sugar-badge]: https://img.shields.io/npm/v/sugarml.svg |
347 | | -[sugar-npm]: https://npmjs.com/package/sugarml |
348 | 324 |
|
349 | 325 | ## Plugins |
350 | 326 |
|
@@ -386,19 +362,5 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com |
386 | 362 |
|
387 | 363 | <a href="https://opencollective.com/posthtml#backers" target="_blank"><img src="https://opencollective.com/posthtml/backers.svg?width=885&button=false"></a> |
388 | 364 |
|
389 | | - |
390 | | -[npm]: https://img.shields.io/npm/v/posthtml.svg |
391 | | -[npm-url]: https://npmjs.com/package/posthtml |
392 | | - |
393 | | -[build]: https://github.com/posthtml/posthtml/workflows/Actions%20Status/badge.svg?style=flat-square |
394 | | -[build-url]: https://github.com/posthtml/posthtml/actions?query=workflow%3A%22CI+tests%22 |
395 | | - |
396 | | -[cover]: https://coveralls.io/repos/posthtml/posthtml/badge.svg?branch=master |
397 | | -[cover-url]: https://coveralls.io/r/posthtml/posthtml?branch=master |
398 | | - |
399 | | -[code-style]: https://img.shields.io/badge/code%20style-standard-yellow.svg |
400 | | -[code-style-url]: http://standardjs.com/ |
401 | | - |
402 | 365 | [chat]: https://badges.gitter.im/posthtml/PostHTML.svg |
403 | 366 | [chat-url]: https://gitter.im/posthtml/posthtml?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge" |
404 | | -[docs-url]: https://github.com/posthtml/posthtml/tree/master/docs |
0 commit comments