{"id":15625814,"url":"https://github.com/patarapolw/indented-filter","last_synced_at":"2026-01-19T08:02:00.999Z","repository":{"id":51746121,"uuid":"203900302","full_name":"patarapolw/indented-filter","owner":"patarapolw","description":"Indented filter maker for Showdown extension / Hyperpug","archived":false,"fork":false,"pushed_at":"2023-01-07T08:58:31.000Z","size":90,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T22:48:07.653Z","etag":null,"topics":["hyperpug","showdown-extension"],"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":"2019-08-23T01:23:03.000Z","updated_at":"2021-10-03T06:55:50.000Z","dependencies_parsed_at":"2023-02-06T17:40:12.299Z","dependency_job_id":null,"html_url":"https://github.com/patarapolw/indented-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patarapolw/indented-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findented-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findented-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findented-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findented-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patarapolw","download_url":"https://codeload.github.com/patarapolw/indented-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Findented-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28563222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","showdown-extension"],"created_at":"2024-10-03T10:05:26.909Z","updated_at":"2026-01-19T08:02:00.964Z","avatar_url":"https://github.com/patarapolw.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# indented-filter\n\nIndented filter maker for [Showdown](https://github.com/showdownjs/showdown) extension / [Hyperpug](https://github.com/patarapolw/hyperpug)\n\n## Installation\n\n```\nnpm i indented-filter\n```\n\n## Usage\n\n```typescript\nimport { createIndentedFilter } from \"indented-filter\";\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```\n^^x1 hello\n```\n\n```\n^^x1(source=\"github\") hello\n```\n\n```\n![](^^x1(source=\"github\") hello^^)\n```\n\n```\n^^x1(source=\"github\").\n  thank you\n    very\n\n  much\n```\n\nFor more test cases, see [/tests/index.spec.ts](/tests/index.spec.ts)\n\nFor my use case, see, \u003chttps://github.com/patarapolw/zhdiary/blob/master/src/plugins/showdown-ext.js#L23\u003e\n\nFor more information about custom [Showdown](https://github.com/showdownjs/showdown) extensions, see \u003chttps://github.com/showdownjs/showdown/wiki/Extensions\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatarapolw%2Findented-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatarapolw%2Findented-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatarapolw%2Findented-filter/lists"}