{"id":20790699,"url":"https://github.com/markedjs/marked-base-url","last_synced_at":"2025-10-11T15:35:08.918Z","repository":{"id":149902250,"uuid":"622312466","full_name":"markedjs/marked-base-url","owner":"markedjs","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-29T20:42:30.000Z","size":3389,"stargazers_count":6,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-29T21:41:26.500Z","etag":null,"topics":["extension","marked"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/marked-base-url","language":"JavaScript","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/markedjs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-01T18:29:57.000Z","updated_at":"2025-09-29T20:38:29.000Z","dependencies_parsed_at":"2023-10-17T01:45:54.939Z","dependency_job_id":"b0db794d-b11c-4fbf-a45f-1a15e73bb611","html_url":"https://github.com/markedjs/marked-base-url","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":"markedjs/marked-extension-template","purl":"pkg:github/markedjs/marked-base-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-base-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-base-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-base-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-base-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markedjs","download_url":"https://codeload.github.com/markedjs/marked-base-url/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked-base-url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007602,"owners_count":26084334,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["extension","marked"],"created_at":"2024-11-17T15:36:58.500Z","updated_at":"2025-10-11T15:35:08.888Z","avatar_url":"https://github.com/markedjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# marked-base-url\n\nPrefix relative url with base url.\n\n# Usage\n\n```js\n// ESM\nimport {marked} from \"marked\";\nimport {baseUrl} from \"marked-base-url\";\n\nmarked.use(baseUrl(\"https://example.com/folder/\"));\nconst html = marked.parse(\"[my url](./relative/path)\");\n// \u003cp\u003e\u003ca href=\"https://example.com/folder/relative/path\"\u003emy url\u003c/a\u003e\u003c/p\u003e\n\n// BROWSER\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/marked\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/marked-base-url\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    marked.use(markedBaseUrl.baseUrl(\"https://example.com/folder/\"));\n    const html = marked.parse(\"[my url](./relative/path)\");\n    // \u003cp\u003e\u003ca href=\"https://example.com/folder/relative/path\"\u003emy url\u003c/a\u003e\u003c/p\u003e\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkedjs%2Fmarked-base-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkedjs%2Fmarked-base-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkedjs%2Fmarked-base-url/lists"}