{"id":17143805,"url":"https://github.com/harttle/codemirror-lang-liquid","last_synced_at":"2025-03-24T09:42:32.442Z","repository":{"id":194808015,"uuid":"689589627","full_name":"harttle/codemirror-lang-liquid","owner":"harttle","description":"Liquid language package for CodeMirror 6","archived":false,"fork":false,"pushed_at":"2023-09-23T03:11:40.000Z","size":180,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T15:13:15.424Z","etag":null,"topics":["codemirror","demo","liquid"],"latest_commit_sha":null,"homepage":"https://harttle.land/codemirror-lang-liquid/","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/harttle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"harttle","open_collective":"liquidjs","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-09-10T09:49:34.000Z","updated_at":"2024-01-15T12:28:09.000Z","dependencies_parsed_at":"2024-10-14T20:42:27.476Z","dependency_job_id":null,"html_url":"https://github.com/harttle/codemirror-lang-liquid","commit_stats":null,"previous_names":["harttle/codemirror-lang-liquid"],"tags_count":2,"template":false,"template_full_name":"codemirror/lang-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harttle%2Fcodemirror-lang-liquid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harttle%2Fcodemirror-lang-liquid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harttle%2Fcodemirror-lang-liquid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harttle%2Fcodemirror-lang-liquid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harttle","download_url":"https://codeload.github.com/harttle/codemirror-lang-liquid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245247975,"owners_count":20584450,"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":["codemirror","demo","liquid"],"created_at":"2024-10-14T20:42:21.571Z","updated_at":"2025-03-24T09:42:32.417Z","avatar_url":"https://github.com/harttle.png","language":"TypeScript","funding_links":["https://github.com/sponsors/harttle","https://opencollective.com/liquidjs"],"categories":[],"sub_categories":[],"readme":"# Liquid language package for CodeMirror 6\n\nLive demo: https://harttle.land/codemirror-lang-liquid/\n\n## Get Started\n\n```javascript\nimport {EditorView, basicSetup} from \"codemirror\"\nimport {LiquidHTML} from \"codemirror-lang-liquid\"\n\nconst doc = `{% layout \"main.liquid\" with \"dark\", url: \"/\" %}`\n\nnew EditorView({\n  doc,\n  extensions: [basicSetup, LiquidHTML({\n    filterNames: [\"customFilter\"],\n    tagNames: [\"customTag\"],\n    variableNames: [\"foo\", \"bar\"]\n  })],\n  parent: document.body\n})\n```\n\nDemos:\n\n- JavaScript: https://github.com/harttle/codemirror-lang-liquid/tree/main/demo\n- React: https://github.com/harttle/codemirror-react-demo\n\n## API\n\n- `Liquid`: `LanguageSupport` for pure Liquid language.\n- `LiquidHTML`: `LanguageSupport` for Liquid used to create HTML.\n\n## Contribute\n\n### Build \u0026 test\n\n```bash\nnpm run build\nnpm test\n```\n\n### Build demo page\n\nYou'll need to build `codemirror-lang-liquid` first. Then link current project to demo:\n\n```bash\nnpm link\ncd demo \u0026\u0026 npm link codemirror-lang-liquid \u0026\u0026 cd ..\n```\n\nBuild \u0026 run demo (in parent directory):\n\n```bash\nnpm run build:demo\nnpm run start:demo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharttle%2Fcodemirror-lang-liquid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharttle%2Fcodemirror-lang-liquid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharttle%2Fcodemirror-lang-liquid/lists"}