{"id":13782341,"url":"https://github.com/jaywcjlove/parcel-plugin-markdown-string","last_synced_at":"2025-07-06T21:02:50.418Z","repository":{"id":30606918,"uuid":"125518700","full_name":"jaywcjlove/parcel-plugin-markdown-string","owner":"jaywcjlove","description":"📦@parcel-bundler plugin for loader markdown string, markdown output HTML. ","archived":false,"fork":false,"pushed_at":"2024-11-09T03:34:23.000Z","size":510,"stargazers_count":21,"open_issues_count":5,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T13:46:21.813Z","etag":null,"topics":["markdown","markdown-to-html","parcel-bundler","parcel-plugin","parceljs"],"latest_commit_sha":null,"homepage":"https://jaywcjlove.github.io/parcel-plugin-markdown-string","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/jaywcjlove.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":"https://jaywcjlove.github.io/#/sponsor"}},"created_at":"2018-03-16T13:17:19.000Z","updated_at":"2023-10-27T10:29:14.000Z","dependencies_parsed_at":"2023-01-14T17:18:33.533Z","dependency_job_id":"e8b136b8-d94c-441a-b564-05eab8ca18d0","html_url":"https://github.com/jaywcjlove/parcel-plugin-markdown-string","commit_stats":{"total_commits":60,"total_committers":5,"mean_commits":12.0,"dds":0.1333333333333333,"last_synced_commit":"5114abcc093648d9b5d283949b33aa06eeeb70a1"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fparcel-plugin-markdown-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fparcel-plugin-markdown-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fparcel-plugin-markdown-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fparcel-plugin-markdown-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaywcjlove","download_url":"https://codeload.github.com/jaywcjlove/parcel-plugin-markdown-string/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fparcel-plugin-markdown-string/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258743731,"owners_count":22750655,"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":["markdown","markdown-to-html","parcel-bundler","parcel-plugin","parceljs"],"created_at":"2024-08-03T18:01:35.478Z","updated_at":"2025-07-06T21:02:50.373Z","avatar_url":"https://github.com/jaywcjlove.png","language":"TypeScript","readme":"parcel-transformer-markdown\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![NPM Downloads](https://img.shields.io/npm/dm/parcel-transformer-markdown.svg?style=flat)](https://www.npmjs.com/package/parcel-transformer-markdown)\n[![Build \u0026 Deploy](https://github.com/jaywcjlove/parcel-plugin-markdown-string/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/parcel-plugin-markdown-string/actions/workflows/ci.yml)\n[![parcel-transformer-markdown version](https://img.shields.io/npm/v/parcel-transformer-markdown.svg?label=parcel-transformer-markdown)](https://www.npmjs.com/package/parcel-transformer-markdown)\n[![parcel-plugin-markdown-string version](https://img.shields.io/npm/v/parcel-plugin-markdown-string.svg?label=parcel-plugin-markdown-string)](https://www.npmjs.com/package/parcel-plugin-markdown-string)\n\n[**`Parcel 2`**](https://parceljs.org/) plugin for loader markdown string, markdown output HTML.\n\n\u003e ⚠️ ~~[`parcel-plugin-markdown-string`](https://github.com/jaywcjlove/parcel-plugin-markdown-string/tree/parcel-plugin-markdown-string)~~ =\u003e [`parcel-transformer-markdown`](https://www.npmjs.com/package/parcel-transformer-markdown)\n\n```diff\n- parcel-plugin-markdown-string \n+ parcel-transformer-markdown\n```\n\n## Example usage\n\nInstall the plugin\n\n```bash\nnpm install parcel-transformer-markdown --save-dev\n```\n\n`.parcelrc`\n\n```js\n{\n  \"extends\": \"@parcel/config-default\",\n  \"transformers\": {\n    \"*.md\": [ \"parcel-transformer-markdown\" ]\n  }\n}\n```\n\n`index.html`:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003cdiv id=\"root\"\u003e\u003c/div\u003e\n\u003cscript type=\"module\" src=\"index.js\"\u003e\u003c/script\u003e\n```\n\n**Output HTML string**\n\nImport your markdown files! Output HTML string.\n\n```js\nimport HTMLStr from './Markdown.md';\n\nconsole.log(HTMLStr) // =\u003e Output HTML string.\ndocument.body.innerHTML = HTMLStr;\n```\n\n**Output Markdown string**\n\n```js\n// .markedrc\n{\n  \"marked\": false\n}\n```\n\n```js\nimport str from './Markdown.md';\n\nconsole.log(str) // =\u003e Output Markdown string.\ndocument.body.innerHTML = str;\n```\n\n## Configuration\n\n[Marked](https://github.com/markedjs/marked) can be configured using a `.markedrc`, `.markedrc.js`, or `marked.config.js` file. See the [Marked API Reference](https://marked.js.org/using_advanced#options) for details on the available options.\n\n\u003e Note: `.markedrc.js` and `marked.config.js` are supported for JavaScript-based configuration, but should be avoided when possible because they reduce the effectiveness of Parcel's caching. Use a JSON based configuration format (e.g. `.markedrc`) instead.\n\nThere is a `marked` configuration that converts `markdown` to `HTML`. Otherwise just read the `markdown` string.\n\n```js\n{\n  \"marked\": {\n    \"breaks\": true,\n    \"pedantic\": false,\n    \"gfm\": true,\n    \"tables\": true,\n    \"sanitize\": false,\n    \"smartLists\": true,\n    \"smartypants\": false,\n    \"xhtml\": false\n  }\n}\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\u003ca href=\"https://github.com/jaywcjlove/parcel-plugin-markdown-string/graphs/contributors\"\u003e\n  \u003cimg src=\"https://jaywcjlove.github.io/parcel-plugin-markdown-string/CONTRIBUTORS.svg\" /\u003e\n\u003c/a\u003e\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nMIT © [Kenny Wong](https://wangchujiang.com)\n","funding_links":["https://jaywcjlove.github.io/#/sponsor"],"categories":["TypeScript","Plugins"],"sub_categories":["Templates"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaywcjlove%2Fparcel-plugin-markdown-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaywcjlove%2Fparcel-plugin-markdown-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaywcjlove%2Fparcel-plugin-markdown-string/lists"}