{"id":21418820,"url":"https://github.com/zchfvy/vidify","last_synced_at":"2025-07-09T16:40:54.892Z","repository":{"id":57439717,"uuid":"244081142","full_name":"zchfvy/vidify","owner":"zchfvy","description":"Html5 video for python-markdown","archived":false,"fork":false,"pushed_at":"2021-03-22T00:28:32.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T10:53:18.455Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zchfvy.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}},"created_at":"2020-03-01T03:39:06.000Z","updated_at":"2021-03-22T00:28:34.000Z","dependencies_parsed_at":"2022-09-26T17:20:46.202Z","dependency_job_id":null,"html_url":"https://github.com/zchfvy/vidify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zchfvy/vidify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchfvy%2Fvidify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchfvy%2Fvidify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchfvy%2Fvidify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchfvy%2Fvidify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zchfvy","download_url":"https://codeload.github.com/zchfvy/vidify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchfvy%2Fvidify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264496111,"owners_count":23617689,"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-22T19:28:24.510Z","updated_at":"2025-07-09T16:40:54.831Z","avatar_url":"https://github.com/zchfvy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Vidify - convert img tags to html5 video tags\n================================================================================\n\nVidify is a plugin for Python's Markdown that allows you to embed html5 video\ninto your document. It's inteneded for Python 3.6 + but is _probably_\nback-compatible with 2.7.\n\nVidifiy works by detecting `\u003cimg\u003e` tags pointing at a file with an extension of\n.webm, .mp4, or .ogg and replacing them with `\u003cvideo\u003e` tags.\n\nInstalling\n---\nSimply install from PyPi:\n```\npip install markdown-vidify\n```\n\nUsage\n================================================================================\nSimply import the package and then pass it to the extensions parameter of\nmarkdown!\n```python\nimport markdown\nimport markdown_vidify\n\n# ...\n\nouptut = markdown.markdown(input, extensions=[\n    markdown_vidify.VidifyExtension(\n        autoplay=False,\n        controls=True,\n        loop=False,\n        mute=False,\n    )\n])\n```\n\nOptions\n--------------------------------------------------------------------------------\nAll default to false:\n\n* autoplay - Autoplay the video once page is loaded\n* controls - Display player controls below the video\n* loop - Loop the video\n* muted - Video is muted by default\n\nExtra Hints!\n--------------------------------------------------------------------------------\nConsider using the Attribute List plugin that comes with markdown to set the\nhtml5 poster attribute. This will be an image that displays in-place of your\nvideo while it is downloading or until the user hits the play button!\n\n```\n![alt](/path/to/video.webm){: poster=\"/path/to/image.png\"}\n```\n\nWeird Caveat\n--------------------------------------------------------------------------------\nSince html5 video doesn't have an alt-text, the body of the [] is entirely\nignored. Other plugins may still use it however. I am aware of how -janky- this\nis. I considered using it for the poster tag but that still feels janky and it\nwould also interfere with other markdown plugins. If you feel you haev a good\nusgesstion feel free to post it as an issue.\n\nBoring Stuff\n================================================================================\nvidify was written by Jason Hamilton-Smith `\u003chs.jason@gmail.com\u003e`, my website is\n[zchfvy.com](https://zchfvy.com).\n\nThis project is licensed under the GPL v3.0 license. See the `LICENSE` file for\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzchfvy%2Fvidify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzchfvy%2Fvidify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzchfvy%2Fvidify/lists"}