{"id":23208964,"url":"https://github.com/tahv/gitlab-links","last_synced_at":"2026-02-26T19:41:08.969Z","repository":{"id":263261657,"uuid":"889832730","full_name":"tahv/gitlab-links","owner":"tahv","description":"Python-Markdown GitLab Links Extension ","archived":false,"fork":false,"pushed_at":"2024-11-26T16:39:39.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T12:51:14.357Z","etag":null,"topics":["gitlab","markdown","python-markdown"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/mdx-gitlab-links/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tahv.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-17T11:07:16.000Z","updated_at":"2024-11-26T16:39:43.000Z","dependencies_parsed_at":"2024-11-18T00:03:47.044Z","dependency_job_id":null,"html_url":"https://github.com/tahv/gitlab-links","commit_stats":null,"previous_names":["tahv/gitlab-links"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tahv/gitlab-links","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahv%2Fgitlab-links","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahv%2Fgitlab-links/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahv%2Fgitlab-links/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahv%2Fgitlab-links/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tahv","download_url":"https://codeload.github.com/tahv/gitlab-links/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahv%2Fgitlab-links/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29868898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"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":["gitlab","markdown","python-markdown"],"created_at":"2024-12-18T18:13:17.916Z","updated_at":"2026-02-26T19:41:08.937Z","avatar_url":"https://github.com/tahv.png","language":"Python","readme":"# Python-Markdown GitLab-Links Extension\n\nAn extension to [Python-Markdown](https://github.com/Python-Markdown/markdown)\nwhich adds support for [GitLab-specific references](https://docs.gitlab.com/ee/user/markdown.html#gitlab-specific-references).\nInspired by [github-links](https://github.com/Python-Markdown/github-links/tree/master).\n\n## Installation\n\n```text\npip install mdx-gitlab-links\n```\n\n## Usage\n\nTo use the extension simply include its name in the list of extensions\npassed to Python-Markdown.\n\nTo set configuration options,\nyou may pass them to Markdown's `exension_configs` keyword.\n\n```python\nimport markdown\n\nmarkdown.markdown(\n    src,\n    extensions=[\"mdx_gitlab_links\"],\n    extension_configs={\n        \"mdx_gitlab_links\": {\n            \"domain\": \"https://gitlab.mydomain.com\",\n            \"group\": \"my-group/my-subgroup\",\n            \"project\": \"my-project\",\n        },\n    },\n)\n```\n\nOr you may import and pass the configs directly\nto an instance of the `mdx_gitlab_links.GitlabLinks` class.\n\n```python\nimport markdown\nfrom mdx_gitlab_links import GitlabLinks\n\nextension = GitlabLinks(\n    domain=\"https://gitlab.mydomain.com\",\n    group=\"my-group/my-subgroup\",\n    project=\"my-project\",\n)\n\nmarkdown.markdown(src, extensions=[extension])\n```\n\nThe following configurations options are available:\n\n- **domain**:\n    The GitLab domain or Enterprise Server domain.\n    Default to `https://gitlab.com`.\n- **group**:\n    The GitLab user or group (and subgroup).\n- **project**:\n    The GitLab repository name.\n\n## Syntax\n\nAll links are assigned the `gl-link` class as well\nas a class unique to that type of link.\nSee each type for the specific class assigned.\n\n### Merge Requests\n\nAll merge requests links are assigned the `gl-mr` class.\n\nThe following table provides various examples\n(with the defaults set as `group='group/subgroup'`, `project='project'`):\n\n| input               | href                                            | render |\n|---------------------|-------------------------------------------------|--------|\n| `!123`              | `https://gitlab.com/group/subgroup/project/123` | [!123](https://gitlab.com/group/subgroup/project/-/merge_requests/123 \"GitLab Merge Request group/subgroup/project/123\") |\n| `proj!123`          | `https://gitlab.com/group/subgroup/proj/123`    | [proj/!123](https://gitlab.com/group/subgroup/proj/-/merge_requests/123 \"GitLab Merge Request group/subgroup/proj/123\") |\n| `grp/sub/proj!123`  | `https://gitlab.com/grp/sub/proj/123`           | [grp/sub/proj/!123](https://gitlab.com/grp/sub/proj/-/merge_requests/123 \"GitLab Merge Request grp/sub/proj/123\") |\n| `\\!123`             |                                                 | !123 |\n| `proj\\!123`         |                                                 | proj!123 |\n| `grp/sub/proj\\!123` |                                                 | grp/sub/proj!123 |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahv%2Fgitlab-links","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftahv%2Fgitlab-links","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahv%2Fgitlab-links/lists"}