{"id":27634891,"url":"https://github.com/aleclarson/vite-plugin-marked","last_synced_at":"2025-04-23T19:39:04.982Z","repository":{"id":282590535,"uuid":"949092277","full_name":"aleclarson/vite-plugin-marked","owner":"aleclarson","description":"The simplest Markdown-to-HTML plugin for Vite","archived":false,"fork":false,"pushed_at":"2025-03-15T17:07:12.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T02:59:47.182Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aleclarson.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":"2025-03-15T16:54:48.000Z","updated_at":"2025-04-13T18:52:40.000Z","dependencies_parsed_at":"2025-03-15T19:31:39.699Z","dependency_job_id":null,"html_url":"https://github.com/aleclarson/vite-plugin-marked","commit_stats":null,"previous_names":["aleclarson/vite-plugin-marked"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fvite-plugin-marked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fvite-plugin-marked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fvite-plugin-marked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fvite-plugin-marked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleclarson","download_url":"https://codeload.github.com/aleclarson/vite-plugin-marked/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250500897,"owners_count":21440907,"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-04-23T19:39:04.361Z","updated_at":"2025-04-23T19:39:04.968Z","avatar_url":"https://github.com/aleclarson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-marked\n\nA minimalist Vite plugin for converting Markdown to HTML with [marked](https://github.com/markedjs/marked). No other dependencies.\n\n```\npnpm add vite-plugin-marked -D\n```\n\n## Usage\n\n```ts\nimport markedPlugin from 'vite-plugin-marked'\n\nexport default defineConfig({\n  plugins: [\n    // Default options\n    markedPlugin({\n      htmlQuery: false,\n      // Marked options\n      async: false,\n      breaks: false,\n      extensions: null,\n      gfm: true,\n      hooks: null,\n      pedantic: false,\n      renderer: null,\n      silent: false,\n      tokenizer: null,\n      walkTokens: null,\n    }),\n  ],\n})\n```\n\nThe options for `marked` are documented [here](https://marked.js.org/using_advanced#options).\n\nBy default, any `.md` import will be processed into a default export containing the HTML string.\n\n```ts\nimport htmlString from './example.md'\n\nconsole.log(htmlString)\n```\n\nNote that any `.md` imports with `?raw` or other query params won't get processed by this plugin.\n\n### `?html` query\n\nYou can set the `htmlQuery` option to `true` to only process `.md` imports with the `?html` query.\n\n```ts\nimport htmlString from './example.md?html'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fvite-plugin-marked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleclarson%2Fvite-plugin-marked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fvite-plugin-marked/lists"}