{"id":25696735,"url":"https://github.com/tizee/gatsby-remark-b23","last_synced_at":"2026-07-14T15:30:18.152Z","repository":{"id":56105585,"uuid":"284013605","full_name":"tizee/gatsby-remark-b23","owner":"tizee","description":"Transform bilibili video link to bilibili player in gatsby-transformer-remark","archived":false,"fork":false,"pushed_at":"2020-11-25T06:47:49.000Z","size":23,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T11:53:33.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tizee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-31T10:51:19.000Z","updated_at":"2020-07-31T11:06:23.000Z","dependencies_parsed_at":"2022-08-15T13:10:54.823Z","dependency_job_id":null,"html_url":"https://github.com/tizee/gatsby-remark-b23","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fgatsby-remark-b23","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fgatsby-remark-b23/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fgatsby-remark-b23/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fgatsby-remark-b23/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tizee","download_url":"https://codeload.github.com/tizee/gatsby-remark-b23/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240587490,"owners_count":19825004,"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":"2025-02-25T01:55:08.884Z","updated_at":"2026-07-14T15:30:18.102Z","avatar_url":"https://github.com/tizee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch3\u003egatsby-remark-bilibili\u003c/h3\u003e\n\u003cp\u003eTransform bilibili video link to embed bilibili video playar\u003cp\u003e\n\u003c/div\u003e\n\n### Why?\n\nInspired by [gatsby-remark-ombed](https://github.com/raae/gatsby-remark-oembed) and [gatsby-remark-embedder](https://github.com/MichaelDeBoey/gatsby-remark-embedder), I would like to embed bilibili player in markdown using markdown by combining features from these two plugins.\n\n### Usage\n\n#### Use gatsby-transformer-remark\n\n```js\n  {\n    resolve: `gatsby-transformer-remark`,\n    options: {\n      plugins: [\n        {\n          resolve: `@tizee/gatsby-remark-b23`,\n          options: {\n              prefix: \"embed\"\n          }\n        }\n      ]\n    }\n  }\n```\n\n#### Use gatsby-transformer-mdx\n\n```js\n{\n      resolve: 'gatsby-plugin-mdx',\n      options: {\n        extensions: ['.mdx', '.md'],\n        gatsbyRemarkPlugins: [\n          {\n            resolve: `gatsby-remark-magic`,\n            options: {\n              prefix: 'embed',\n            },\n          },\n      }\n}\n```\n\n#### With prefix\n\nIn your markdown file, use a prefix in inline code.\n\n```markdown\n`embed https://bilibili.com/video/BV1YV411r7ns`\n```\n\nIt will be transformed to:\n\n```markdown\n\u003ciframe width=\"100%\" height=\"400\" src=\"https://player.bilibili.com/player.html?bvid=BV1YV411r7ns\" scrolling=\"no\" border=\"0\" frameborder=\"no\" framespacing=\"0\" allowfullscreen=\"true\"\u003e \u003c/iframe\n```\n\n#### Without prefix\n\nYou need to put the link surronded by empty lines as a parapgraph.\n\n```markdown\nhttps://bilibili.com/video/BV1YV411r7ns\n```\n\nIt will be transformed to:\n\n```markdown\n\u003ciframe width=\"100%\" height=\"400\" src=\"https://player.bilibili.com/player.html?bvid=BV1YV411r7ns\" scrolling=\"no\" border=\"0\" frameborder=\"no\" framespacing=\"0\" allowfullscreen=\"true\"\u003e \u003c/iframe\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Fgatsby-remark-b23","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftizee%2Fgatsby-remark-b23","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Fgatsby-remark-b23/lists"}