{"id":19999161,"url":"https://github.com/mr-addict/mdbook-embedify","last_synced_at":"2025-05-04T14:31:28.068Z","repository":{"id":216355046,"uuid":"741103569","full_name":"MR-Addict/mdbook-embedify","owner":"MR-Addict","description":"A rust based mdbook preprocessor plugin that allows you to embed apps to your book, like youtube, codepen and some other apps.","archived":false,"fork":false,"pushed_at":"2025-04-17T08:42:37.000Z","size":18460,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-17T23:49:38.089Z","etag":null,"topics":["mdbook","mdbook-plugins","mdbook-preprocessor","rust","youtube"],"latest_commit_sha":null,"homepage":"https://mr-addict.github.io/mdbook-embedify/","language":"Rust","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/MR-Addict.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}},"created_at":"2024-01-09T17:47:37.000Z","updated_at":"2025-04-17T08:42:17.000Z","dependencies_parsed_at":"2025-04-17T10:20:02.410Z","dependency_job_id":"71f2f096-e738-4a97-83bc-41c5ea04d4a7","html_url":"https://github.com/MR-Addict/mdbook-embedify","commit_stats":null,"previous_names":["mr-addict/mdbook-embedify"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MR-Addict%2Fmdbook-embedify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MR-Addict%2Fmdbook-embedify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MR-Addict%2Fmdbook-embedify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MR-Addict%2Fmdbook-embedify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MR-Addict","download_url":"https://codeload.github.com/MR-Addict/mdbook-embedify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252349585,"owners_count":21733854,"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":["mdbook","mdbook-plugins","mdbook-preprocessor","rust","youtube"],"created_at":"2024-11-13T05:10:52.112Z","updated_at":"2025-05-04T14:31:28.064Z","avatar_url":"https://github.com/MR-Addict.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mdbook Embedify\n\n![Crates.io](https://img.shields.io/crates/v/mdbook-embedify) ![Crates.io](https://img.shields.io/crates/l/mdbook-embedify)\n\nThis is a [mdbook](https://rust-lang.github.io/mdBook) preprocessor plugin that allows you to embed apps to your book, like youtube, codepen, giscus and many other apps.\n\n## 1. Installation\n\nThere are two ways to install this plugin.\n\nYou can install it from crates.io using cargo.\n\n```sh\ncargo install mdbook-embedify\n```\n\nOr you can download the binary from [releases](https://github.com/mr-addict/mdbook-embedify/releases) page.\n\nThen you can check your installation by running:\n\n```sh\nmdbook-embedify --version\n```\n\nAfter installation, add the following code to your `book.toml` file:\n\n```toml\n[preprocessor.embedify]\n```\n\n## 2. Usage\n\nThen you can use `embed` macro to embed an app. The syntax is like this:\n\n```text\n{% embed app options[] %}\n```\n\n**options** are key-value based array seperated by space and its value should be wrapped by **quotes**. For example:\n\n```text\n{% embed codepen user=\"MR-Addict\" slug=\"NWBOqKw\" height=\"600\" theme=\"dark\" loading=\"lazy\" %}\n```\n\n## 3. Examples\n\n![preview](preview.png)\n\nYou can see a live demo and more detailed documentation [here](https://mr-addict.github.io/mdbook-embedify).\n\n## 4. More Apps\n\nIf you want to add more apps to this preprocessor, you can follow the instructions [here](https://mr-addict.github.io/mdbook-embedify/more-apps.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-addict%2Fmdbook-embedify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-addict%2Fmdbook-embedify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-addict%2Fmdbook-embedify/lists"}