{"id":18881074,"url":"https://github.com/tylertemp/md-video","last_synced_at":"2025-07-19T15:40:29.122Z","repository":{"id":86362596,"uuid":"51089101","full_name":"TylerTemp/md-video","owner":"TylerTemp","description":"video block(tag) extension for Python-Markdown","archived":false,"fork":false,"pushed_at":"2016-07-22T17:31:44.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T03:26:24.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/TylerTemp.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}},"created_at":"2016-02-04T16:32:21.000Z","updated_at":"2016-02-04T18:38:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"5af08b4d-1363-47c9-ba8b-52c139e5a6c0","html_url":"https://github.com/TylerTemp/md-video","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerTemp%2Fmd-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerTemp%2Fmd-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerTemp%2Fmd-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerTemp%2Fmd-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TylerTemp","download_url":"https://codeload.github.com/TylerTemp/md-video/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239850449,"owners_count":19707348,"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":[],"created_at":"2024-11-08T06:47:15.447Z","updated_at":"2025-02-20T13:45:58.189Z","avatar_url":"https://github.com/TylerTemp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"md-video\n========\n\nvideo block(tag) extension for Python-Markdown\n\nInstall\n-------\n\n```bash\npip install -U git+git://github.com/TylerTemp/md-video.git\n```\n\nUsage\n-----\n\n```python\nimport markdown\nimport md_video\n\nmd = \"\"\"\n[Video: Title of the Video]\n![poster](http://link.to.poster/link.png)\n[download.mp4](http://link.to.video/file.mp4)\n[download.ogg](http://link.to.video/file.ogv)\n[download.webm](http://link.to.video/file.webm)\n[subtitle.en-US.vtt](http://link.to.subtitle/en_us.vtt \"English\")\n[subtitle.zh.vtt](http://link.to.subtitle/zh.vtt \"Chinese\")\n\"\"\"\n\nhtml = markdown.markdown(md, extensions=[makeExtension()])\nprint(html)\n```\n\nwill give you the result\n\n```html\n\u003cvideo controls=\"controls\" poster=\"http://link.to.poster/link.png\"\u003e\n  Your browser does not support the\u003ccode\u003evideo\u003c/code\u003eelement\n  \u003csource src=\"http://link.to.video/file.mp4\" type=\"video/mp4\"\u003e\n  \u003c/source\u003e\n  \u003csource src=\"http://link.to.video/file.ogv\" type=\"video/ogg\"\u003e\n  \u003c/source\u003e\n  \u003csource src=\"http://link.to.video/file.webm\" type=\"video/webm\"\u003e\n  \u003c/source\u003e\n  \u003ctrack default=\"default\" kind=\"subtitles\" label=\"English\" src=\"http://link.to.subtitle/en_us.vtt\" srclang=\"en-US\"\u003e\n  \u003c/track\u003e\n  \u003ctrack kind=\"subtitles\" label=\"Chinese\" src=\"http://link.to.subtitle/zh.vtt\" srclang=\"zh\"\u003e\n  \u003c/track\u003e\n\u003c/video\u003e\n```\n\nNote `poster` and `subtitle.` should not be changed\n\n`poster` and `subtitle` is optional\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylertemp%2Fmd-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftylertemp%2Fmd-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylertemp%2Fmd-video/lists"}