{"id":43916896,"url":"https://github.com/zooniverse/markdown-api","last_synced_at":"2026-02-06T21:34:58.275Z","repository":{"id":36610794,"uuid":"40916974","full_name":"zooniverse/markdown-api","owner":"zooniverse","description":"Provides Zooniverse flavored markdown via an API","archived":false,"fork":false,"pushed_at":"2024-01-22T17:54:44.000Z","size":211,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-04-15T23:07:30.110Z","etag":null,"topics":["utility"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zooniverse.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}},"created_at":"2015-08-17T18:07:03.000Z","updated_at":"2024-01-14T12:44:09.000Z","dependencies_parsed_at":"2023-11-06T12:34:03.789Z","dependency_job_id":"f5dce4dc-c8ba-4170-b893-b5753fb4552e","html_url":"https://github.com/zooniverse/markdown-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zooniverse/markdown-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fmarkdown-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fmarkdown-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fmarkdown-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fmarkdown-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zooniverse","download_url":"https://codeload.github.com/zooniverse/markdown-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fmarkdown-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29177554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T20:14:21.878Z","status":"ssl_error","status_checked_at":"2026-02-06T20:14:21.443Z","response_time":59,"last_error":"SSL_read: 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":["utility"],"created_at":"2026-02-06T21:34:57.370Z","updated_at":"2026-02-06T21:34:58.262Z","avatar_url":"https://github.com/zooniverse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-api\n\nProvides [Zooniverse flavored markdown](https://github.com/zooniverse-ui/markdownz) via an API.\n\nAs of 2017-10, this is used by [TalkApi](https://github.com/zooniverse/talk-api) to render posts and comments when it sends them out in HTML emails. By making Markdown rendering into a microservice, we can make sure to use the same engine as we use in the frontend.\n\n## Usage\n\n`NODE_ENV=production node .`\n\n*Setting `NODE_ENV` will set the host url to localhost, staging, or production\n\n`/html` Accepts a JSON post and returns HTML\n\nparams:\n- markdown: the markdown to be converted to HTML\n- project (optional): the `\u003cowner\u003e/\u003cname\u003e` of the project\n\n## Examples\n\nWithout specifying the project:\n```\ncurl -H \"Accept: text/html\" -H \"Content-Type: application/json\" -X POST -d '{\"markdown\": \"Hey @parrish, look at **this** #agn: @vrooje/galaxy-zoo-bar-lengths^S465826! :D\"}' http://localhost:2998/html\n```\n\n```html\n\u003cdiv\u003e\n  \u003cp\u003eHey\n    \u003ca href=\"https://www.zooniverse.org/users/parrish\"\u003e@parrish\u003c/a\u003e, look at \u003cstrong\u003ethis\u003c/strong\u003e\n    \u003ca href=\"https://www.zooniverse.org/talk/search?query=agn\"\u003e#agn\u003c/a\u003e:\n    \u003ca href=\"https://www.zooniverse.org/projects/vrooje/galaxy-zoo-bar-lengths/talk/subjects/465826\"\u003evrooje/galaxy-zoo-bar-lengths - Subject 465826\u003c/a\u003e!\n    \u003cimg class=\"emoji\" draggable=\"false\" alt=\"\" src=\"https://twemoji.maxcdn.com/36x36/1f604.png\"\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n```\n\nSpecifying the project:\n```\ncurl -H \"Accept: text/html\" -H \"Content-Type: application/json\" -X POST -d '{\"markdown\": \"Hey @parrish, look at **this** #agn: ^S465826! :D\", \"project\": \"vrooje/galaxy-zoo-bar-lengths\"}' http://localhost:2998/html\n```\n\n```html\n\u003cdiv\u003e\n  \u003cp\u003eHey\n    \u003ca href=\"https://www.zooniverse.org/users/parrish\"\u003e@parrish\u003c/a\u003e, look at \u003cstrong\u003ethis\u003c/strong\u003e\n    \u003ca href=\"https://www.zooniverse.org/projects/vrooje/galaxy-zoo-bar-lengths/talk/search?query=agn\"\u003e#agn\u003c/a\u003e:\n    \u003ca href=\"https://www.zooniverse.org/projects/vrooje/galaxy-zoo-bar-lengths/subjects/465826\"\u003evrooje/galaxy-zoo-bar-lengths - Subject 465826\u003c/a\u003e!\n    \u003cimg class=\"emoji\" draggable=\"false\" alt=\"\" src=\"https://twemoji.maxcdn.com/36x36/1f604.png\"\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzooniverse%2Fmarkdown-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzooniverse%2Fmarkdown-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzooniverse%2Fmarkdown-api/lists"}