{"id":24983668,"url":"https://github.com/posthtml/posthtml-textr","last_synced_at":"2025-04-11T20:51:23.233Z","repository":{"id":57328843,"uuid":"43012261","full_name":"posthtml/posthtml-textr","owner":"posthtml","description":"Textr for PostHTML","archived":false,"fork":false,"pushed_at":"2016-02-09T12:58:34.000Z","size":6,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T21:06:08.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npmjs.com/package/posthtml-textr","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-09-23T16:13:11.000Z","updated_at":"2020-06-02T14:43:08.000Z","dependencies_parsed_at":"2022-09-07T16:30:34.126Z","dependency_job_id":null,"html_url":"https://github.com/posthtml/posthtml-textr","commit_stats":null,"previous_names":["voischev/posthtml-textr"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-textr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-textr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-textr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-textr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posthtml","download_url":"https://codeload.github.com/posthtml/posthtml-textr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247810981,"owners_count":21000005,"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:16.200Z","updated_at":"2025-04-11T20:51:23.207Z","avatar_url":"https://github.com/posthtml.png","language":"JavaScript","readme":"# PostHTML-Textr\n[![npm version](https://badge.fury.io/js/posthtml-textr.svg)](http://badge.fury.io/js/posthtml-textr)\n\n[PostHTML](http://github.com/posthtml/posthtml) plugin wrapper over [Textr](http://a.github.io/textr) modular typographic framework\n\n## Usage\n\n```js\nvar posthtml = require('posthtml'),\n    html = '\u003carticle class=\"my-article\"\u003e\u003ch1\u003eHello  \"world\"...\\n\u003c/h1\u003e\u003cp\u003efoo...bar\u003c/p\u003e\u003c/article\u003e';\n\nposthtml()\n    .use(require('posthtml-textr')(\n        { locale: 'ru'},\n        [\n            require('typographic-ellipses'),\n            require('typographic-single-spaces'),\n            require('typographic-quotes')\n        ]\n    ))\n    .process(html)\n    .then(function(result) {\n        console.log(result.html);\n        //\u003carticle class=\"my-article\"\u003e\u003ch1\u003eHello «world»…\u003c/h1\u003e\u003cp\u003efoo…bar\u003c/p\u003e\u003c/article\u003e\n    })\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-textr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthtml%2Fposthtml-textr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-textr/lists"}