{"id":15473019,"url":"https://github.com/patarapolw/indent-utils","last_synced_at":"2026-01-07T22:04:21.014Z","repository":{"id":44015700,"uuid":"233126689","full_name":"patarapolw/indent-utils","owner":"patarapolw","description":"Indented filter utilities, including Showdown extensions / HyperPug filters' maker","archived":false,"fork":false,"pushed_at":"2023-01-05T04:59:25.000Z","size":1449,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T17:06:25.093Z","etag":null,"topics":["hyperpug","pug","showdownjs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patarapolw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-10T20:39:30.000Z","updated_at":"2020-01-10T20:58:21.000Z","dependencies_parsed_at":"2023-02-03T11:15:50.874Z","dependency_job_id":null,"html_url":"https://github.com/patarapolw/indent-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findent-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findent-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findent-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findent-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patarapolw","download_url":"https://codeload.github.com/patarapolw/indent-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246034278,"owners_count":20712857,"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":["hyperpug","pug","showdownjs"],"created_at":"2024-10-02T02:42:14.660Z","updated_at":"2026-01-07T22:04:20.911Z","avatar_url":"https://github.com/patarapolw.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eqdict\n\n[![npm version](https://badge.fury.io/js/indent-utils.svg)](https://badge.fury.io/js/indent-utils)\n\nIndented filter utilities, including Showdown extensions / HyperPug filters' maker\n\n## Usage\n\n```typescript\nimport { createIndentedFilter } from \"indent-utils\";\nconst filterFn = createIndentedFilter(\"x1\", (coveredText, attrs) =\u003e {\n  return customFn(coveredText, attrs)\n});\nconst showdownX1Extension = {\n  type: \"lang\",\n  filter: filterFn\n};\n```\n\nExample matched cases,\n\n```markdown\n^^x1 hello\n```\n\n```markdown\n^^x1(source=\"github\") hello\n```\n\n```markdown\n![](^^x1(source=\"github\") hello^^)\n```\n\n```markdown\n^^x1(source=\"github\").\n  thank you\n    very\n\n  much\n```\n\nFor more test cases, see [/tests/index.spec.yaml](/tests/index.spec.yaml)\n\n## Usage on the browser\n\n```html\n\u003cscript src=\"https://unpkg.com/indent-utils@:version/umd/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nconst filterFn = createIndentedFilter(\"x1\", (coveredText, attrs) =\u003e {\n  return customFn(coveredText, attrs)\n})\nconst showdownX1Extension = {\n  type: \"lang\",\n  filter: filterFn\n}\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatarapolw%2Findent-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatarapolw%2Findent-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatarapolw%2Findent-utils/lists"}