{"id":20989228,"url":"https://github.com/logue/vue-markdown-wasm","last_synced_at":"2025-07-15T23:36:47.125Z","repository":{"id":65051982,"uuid":"581348275","full_name":"logue/vue-markdown-wasm","owner":"logue","description":"markdown-wasm for Vue2 \u0026 3","archived":false,"fork":false,"pushed_at":"2025-07-12T05:54:15.000Z","size":7965,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-12T05:54:36.553Z","etag":null,"topics":["markdown","markdown-converter","markdown-viewer","vue","vue-component","vue2","vue3"],"latest_commit_sha":null,"homepage":"https://logue.dev/vue-markdown-wasm/","language":"Vue","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/logue.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-12-22T23:47:50.000Z","updated_at":"2025-07-12T05:54:19.000Z","dependencies_parsed_at":"2024-04-25T02:09:13.483Z","dependency_job_id":null,"html_url":"https://github.com/logue/vue-markdown-wasm","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"d074e48e766a4803d200883d8e8f8ef21b316f37"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/logue/vue-markdown-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logue%2Fvue-markdown-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logue%2Fvue-markdown-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logue%2Fvue-markdown-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logue%2Fvue-markdown-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logue","download_url":"https://codeload.github.com/logue/vue-markdown-wasm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logue%2Fvue-markdown-wasm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265039542,"owners_count":23702081,"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-converter","markdown-viewer","vue","vue-component","vue2","vue3"],"created_at":"2024-11-19T06:24:10.779Z","updated_at":"2025-07-15T23:36:47.083Z","avatar_url":"https://github.com/logue.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-markdown-wasm\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./src-docs/assets/logo.png\" alt=\"logo\" width=\"300\" height=\"300\" /\u003e\n\u003c/p\u003e\n\n[![jsdelivr CDN](https://data.jsdelivr.com/v1/package/npm/vue-markdown-wasm/badge)](https://www.jsdelivr.com/package/npm/vue-markdown-wasm)\n[![NPM Downloads](https://img.shields.io/npm/dm/vue-markdown-wasm.svg?style=flat)](https://www.npmjs.com/package/vue-markdown-wasm)\n[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/vue-markdown-wasm/file/README.md)\n[![npm version](https://img.shields.io/npm/v/vue-markdown-wasm.svg)](https://www.npmjs.com/package/vue-markdown-wasm)\n[![Open in Gitpod](https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod)](https://gitpod.io/#https://github.com/logue/vue-markdown-wasm)\n[![Twitter Follow](https://img.shields.io/twitter/follow/logue256?style=plastic)](https://twitter.com/logue256)\n\nVue2 and 3 component for [markdown-wasm](https://github.com/logue/markdown-wasm/).\n\n## Usage\n\n```vue\n\u003cscript setup\u003e\nimport VueMarkdown from 'vue-markdown-wasm';\n\n/** Demo text */\nconst input = ref(`# The quick brown fox jumps over the lazy dog.\n\n[Lorem ipsum](https://www.lipsum.com/) dolor sit amet, **consectetur** adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`);\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cvue-markdown v-model=\"input\" /\u003e\n\u003c/template\u003e\n```\n\nSee [Vue Markdown Wasm Live Preview](https://logue.dev/vue-markdown-wasm/) and [source code](./src-docs/DemoPage.vue).\n\n### CDN Usage\n\nLoad markdown-wasm and vue-demi separately. Please change the version accordingly.\n\n```html\n\u003c!-- Vue core --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vue@3.3.4/dist/vue.global.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vue-demi@0.14.5/lib/index.iife.min.js\"\u003e\u003c/script\u003e\n\u003c!-- Markdown wasm --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@logue/markdown-wasm@1.4.12/dist/markdown.iife.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vue-markdown-wasm@0.3.12/dist/index.iife.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const { createApp } = Vue;\n  app.component(VueMarkdown).mount('#app');\n\u003c/script\u003e\n```\n\n## Props\n\n| Props           | Type                  | Default            | Information                                                                                                                 |\n| --------------- | --------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------- |\n| `tag`           | `string`              | article            | Markdown wasm wrapping tag. Default is `article` because it may contain `h1` and `h2` tags.                                 |\n| `parse-flags`   | `ParseFlags`          | ParseFlags.DEFAULT | Flags that customize Markdown parsin                                                                                        |\n| `format`        | `\u003c'html' \\| 'xhtml'\u003e` | xhtml              | Select output format                                                                                                        |\n| `bytes`         | `boolean`             | false              | result as a Uint8Array                                                                                                      |\n| `allow-js-uri`  | `boolean`             | false              | Allow \"javascript:\" in links                                                                                                |\n| `on-code-block` | `Function`            | undefined          | Optional callback which if provided is called for each code block. langname holds the \"language tag\", if any, of the block. |\n\n### ParseFlags\n\n| Flags                         | Description                                              |\n| ----------------------------- | -------------------------------------------------------- |\n| `COLLAPSE_WHITESPACE`         | In TEXT, collapse non-trivial whitespace into single ' ' |\n| `LATEX_MATH_SPANS`            | Enable $ and $$ containing LaTeX equations.              |\n| `NO_HTML_BLOCKS`              | Disable raw HTML blocks.                                 |\n| `NO_HTML_SPANS`               | Disable raw HTML (inline).                               |\n| `NO_INDENTED_CODE_BLOCKS`     | Disable indented code blocks. (Only fenced code works.)  |\n| `PERMISSIVE_ATX_HEADERS`      | Do not require space in ATX headers ( ###header )        |\n| `PERMISSIVE_EMAIL_AUTO_LINKS` | Recognize e-mails as links even without \\\u003c...\\\u003e          |\n| `PERMISSIVE_URL_AUTO_LINKS`   | Recognize URLs as links even without \u003c...\u003e               |\n| `PERMISSIVE_WWW_AUTOLINKS`    | Enable WWW autolinks (without proto; just 'www.')        |\n| `STRIKETHROUGH`               | Enable strikethrough extension.                          |\n| `TABLES`                      | Enable tables extension.                                 |\n| `TASK_LISTS`                  | Enable task list extension.                              |\n| `WIKI_LINKS`                  | Enable wiki links extension.                             |\n| `UNDERLINE`                   | Enable underline extension (disables '\\_' for emphasis)  |\n\n- `DEFAULT` flag is shorthand for `COLLAPSE_WHITESPACE | PERMISSIVE_ATX_HEADERS | PERMISSIVE_URL_AUTO_LINKS | STRIKETHROUGH | TABLES | TASK_LISTS`\n- `NO_HTML` flag is shorthand for `NO_HTML_BLOCKS | NO_HTML_SPANS`\n\n## Emits\n\n| Emits     | Type                   | Description                      |\n| --------- | ---------------------- | -------------------------------- |\n| `@render` | `string \\| Uint8Array` | When markdown to html converted. |\n\n## LICENSE\n\n©2022-2024 by Logue. Licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogue%2Fvue-markdown-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogue%2Fvue-markdown-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogue%2Fvue-markdown-wasm/lists"}