
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@markdown-ui/vue
Advanced tools
Vue renderer for markdown-ui widgets.
npm install @markdown-ui/vue
<template>
<MarkdownUI :html="html" @widgetEvent="handleWidgetEvent" />
</template>
<script setup lang="ts">
import { MarkdownUI } from '@markdown-ui/vue'
import '@markdown-ui/vue/widgets.css'
import { Marked } from 'marked'
import { markedUiExtension } from '@markdown-ui/marked-ext'
const marked = new Marked()
marked.use(markedUiExtension)
const markdown = `
# My Form
\`\`\`markdown-ui-widget
{
"type": "text-input",
"id": "name",
"label": "Your Name",
"placeholder": "Enter your name"
}
\`\`\`
\`\`\`markdown-ui-widget
{
"type": "button-group",
"id": "env",
"label": "Environment",
"choices": ["dev", "staging", "prod"],
"default": "dev"
}
\`\`\`
`
const html = marked.parse(markdown)
const handleWidgetEvent = (event: CustomEvent<{id: string, value: unknown}>) => {
console.log('Widget event:', event.detail)
// Output: {id: "name", value: "John Doe"}
}
</script>
The @widgetEvent listener receives a CustomEvent when widget values change:
const handleWidgetEvent = (event: CustomEvent<{id: string, value: unknown}>) => {
console.log(`Widget ${event.detail.id} changed to:`, event.detail.value)
}
The event contains:
event.detail.id: The widget identifierevent.detail.value: The current widget valueAll standard markdown-ui widgets are supported:
text-inputbutton-groupselectselect-multisliderformSee the main markdown-ui documentation for complete widget syntax and options.
Full TypeScript support is included:
interface WidgetEvent {
id: string
value: unknown
}
const handleWidgetEvent = (event: CustomEvent<WidgetEvent>) => {
const { id, value } = event.detail // Fully typed
}
FAQs
Vue renderer for markdown-ui
The npm package @markdown-ui/vue receives a total of 19 weekly downloads. As such, @markdown-ui/vue popularity was classified as not popular.
We found that @markdown-ui/vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.