{"id":24983656,"url":"https://github.com/posthtml/posthtml-retext","last_synced_at":"2025-07-06T16:04:10.570Z","repository":{"id":57339131,"uuid":"43984927","full_name":"posthtml/posthtml-retext","owner":"posthtml","description":"PostHTML Retext plugin","archived":false,"fork":false,"pushed_at":"2015-10-10T12:26:43.000Z","size":140,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T00:29:26.231Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/posthtml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-09T23:35:59.000Z","updated_at":"2023-06-01T12:54:29.000Z","dependencies_parsed_at":"2022-08-28T07:11:17.272Z","dependency_job_id":null,"html_url":"https://github.com/posthtml/posthtml-retext","commit_stats":null,"previous_names":["voischev/posthtml-retext"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/posthtml/posthtml-retext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-retext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-retext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-retext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-retext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posthtml","download_url":"https://codeload.github.com/posthtml/posthtml-retext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-retext/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260275174,"owners_count":22984650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-04T09:20:03.868Z","updated_at":"2025-07-06T16:04:10.551Z","avatar_url":"https://github.com/posthtml.png","language":"JavaScript","readme":"# PostHTML-Retext\n[![npm version](https://badge.fury.io/js/posthtml-retext.svg)](http://badge.fury.io/js/posthtml-retext)\n\n[PostHTML](http://github.com/posthtml/posthtml) plugin wrapper over [Retext](https://github.com/wooorm/retext) extensible system for analysing and manipulating natural language\n\n## Usage\n\n```js\nvar fs = require('fs'),\n    posthtml = require('posthtml'),\n    html = fs.readFileSync('path/to/file.html');\n\nposthtml()\n    .use(require('posthtml-retext')([\n        [require('retext-emoji'), { convert: 'encode' }], // Array if plugin has options\n        require('retext-smartypants')\n    ]))\n    .process(html)\n    .then(function(result) {\n        fs.writeFileSync('path/to/file.html');\n    })\n```\n\n#### Input html\n\n```html\n\u003chtml\u003e\n\u003cbody\u003e\n    \u003carticle class=\"my-article\"\u003e\n        \u003ch1\u003eHello \"world\"...\u003c/h1\u003e\n        \u003cp\u003eThe three wise monkeys [. . .] sometimes called the three mystic\n        apes--are a pictorial maxim. Together they embody the proverbial\n        principle to (\"see no evil, hear no evil, speak no evil\"). The\n        three monkeys are Mizaru (:see_no_evil:), covering his eyes, who\n        sees no evil; Kikazaru (:hear_no_evil:), covering his ears, who\n        hears no evil; and Iwazaru (:speak_no_evil:), covering his mouth,\n        who speaks no evil.\u003c/p\u003e\n    \u003c/article\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n#### Output html\n\n```html\n\u003chtml\u003e\n\u003cbody\u003e\n    \u003carticle class=\"my-article\"\u003e\n        \u003ch1\u003eHello “world”…\u003c/h1\u003e\n        \u003cp\u003eThe three wise monkeys […] sometimes called the three mystic\n        apes—are a pictorial maxim. Together they embody the proverbial\n        principle to (“see no evil, hear no evil, speak no evil”). The\n        three monkeys are Mizaru (🙈), covering his eyes, who\n        sees no evil; Kikazaru (🙉), covering his ears, who\n        hears no evil; and Iwazaru (🙊), covering his mouth,\n        who speaks no evil.\u003c/p\u003e\n    \u003c/article\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-retext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthtml%2Fposthtml-retext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-retext/lists"}