Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@antdv-next/x-markdown

Latest version: v0.3.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: aibayanyu, cc-heart, ffgenius, lonewolfyx, selicens, shiqkuangsan
4 Versions
863 Downloads

Scan summary

@antdv-next/x-markdown was last scanned on 27 Nov 2026 at version 0.3.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 0.3.1.
  • Downloads: 863 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.1 LATEST 27 Nov 2026 No rules fired
0.3.0 13 Oct 2026 No rules fired
0.2.0 22 Sep 2026 No rules fired
0.1.3 5 Aug 2026 Not shown

No rules fired in 0.3.1

Findings

Findings for v0.3.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@antdv-next/x-markdown

Vue 3 streaming-friendly, highly extensible, and high-performance Markdown renderer.

✨ Features

Built on marked as the base Markdown renderer.

  • 🚀 Built for speed
  • 🤖 Streaming-friendly, a Markdown rendering solution for LLM/AI
  • ⬇️ Low-level compiler for parsing Markdown without long-term caching
  • ⚖️ Lightweight while implementing all supported Markdown styles
  • 🔐 Secure by default, no XSS attacks via DOMPurify
  • 🎨 Customizable components - replace any Markdown element with your own Vue components
  • 🔧 Rich plugin ecosystem
  • 😊 Compatible - 100% CommonMark compliant, 100% GFM compliant

Compatibility

Edge Firefox Chrome Safari Opera
>= 92 >= 90 >= 92 >= 15.4 >= 78

Supported Markdown Specifications

📦 Installation

npm install @antdv-next/x-markdown
yarn add @antdv-next/x-markdown
pnpm add @antdv-next/x-markdown

Example

<script setup>
import "@antdv-next/x-markdown/themes/index.css";
import "@antdv-next/x-markdown/themes/light.css";
import { XMarkdown } from "@antdv-next/x-markdown";

const content = `
# Hello World

### Welcome to XMarkdown!

- Item 1
- Item 2
- Item 3
`;
</script>

<template>
  <XMarkdown :content="content" />
</template>
Streaming Example
<script setup>
import "@antdv-next/x-markdown/themes/index.css";
import "@antdv-next/x-markdown/themes/light.css";
import { ref } from "vue";
import { XMarkdown } from "@antdv-next/x-markdown";

const content = ref("");
const streaming = ref({
  hasNextChunk: true,
  enableAnimation: true,
  tail: true,
});

// Simulate streaming
function onChunk(chunk) {
  content.value += chunk;
}
</script>

<template>
  <XMarkdown :content="content" :streaming="streaming" />
</template>

Styles

Breaking change: @antdv-next/x-markdown no longer imports styles automatically. Import the base styles manually, plus one optional theme stylesheet:

import "@antdv-next/x-markdown/themes/index.css";
import "@antdv-next/x-markdown/themes/light.css";

API

Props
Property Description Type Default
content Markdown content to render string -
components Map HTML nodes to custom Vue components Record<string, Component> -
componentsProps Extra props passed to custom components by tag name Record<string, Record<string, unknown>> -
streaming Streaming behavior config StreamingOption -
config Marked parse config MarkedConfig { gfm: true }
className Extra CSS class for root container string -
style Inline styles for root container Record<string, string> -
paragraphTag HTML tag for paragraphs string 'p'
openLinksInNewTab Add target="_blank" to all links boolean true
protectCustomTagNewlines Preserve newlines inside custom tags boolean true
escapeRawHtml Escape raw HTML as plain text boolean false
debug Enable debug mode boolean false
Passing extra props to custom components

Custom components often need business data (theme, callbacks, etc.). Passing it via an inline wrapper function creates a new component on every render and forces the subtree to be re-created, losing internal state and hurting performance in streaming scenarios. Use componentsProps to pass extra props while keeping component references stable:

<script setup>
import { computed, ref } from "vue";
import { XMarkdown } from "@antdv-next/x-markdown";

const theme = ref("dark");
const components = { "custom-chart": CustomChart };
// Keep the reference stable — an inline object literal invalidates the render
// cache and re-parses the whole tree on every render.
const componentsProps = computed(() => ({
  "custom-chart": { theme: theme.value, onSelect },
}));
</script>

<template>
  <XMarkdown :components="components" :componentsProps="componentsProps" />
</template>

componentsProps is keyed by tag name. Its props are merged with the parsed HTML attributes and passed to the component:

  • On conflict componentsProps wins — a title in componentsProps overrides title="..." from the HTML.
  • class / className is the exception: both sides are concatenated, with the componentsProps class name first (merged into class).
  • Internally computed props — streamStatus, domNode, children (plus lang and block for code) — cannot be overridden and are ignored if present in componentsProps.

When componentsProps changes, the component receives a normal props update without being remounted. Like components, it takes part in the render cache, so passing an inline object literal invalidates that cache on every render and re-parses the whole tree — keep the reference stable (e.g. with computed) as shown above.

StreamingOption
Field Description Type Default
hasNextChunk Whether more chunks are expected boolean false
enableAnimation Enable fade-in animation boolean true
animationConfig Animation options AnimationConfig -
tail Enable tail indicator boolean \| TailConfig false
incompleteMarkdownComponentMap Map incomplete fragments to loading components Partial<Record<TokenType, string>> -
AnimationConfig
Property Description Type Default
fadeDuration Duration in ms number 300
easing CSS easing function string 'ease-out'
TailConfig
Property Description Type Default
content Content to display as tail string '▋'
component Custom tail component Component -

Themes

Import base styles, theme styles, and set the theme class on the root:

<script setup>
import "@antdv-next/x-markdown/themes/index.css";
import "@antdv-next/x-markdown/themes/light.css";
</script>

<template>
  <XMarkdown class="x-markdown-light" content="# Hello" />
</template>

Available themes:

  • light.css - Light theme
  • dark.css - Dark theme

Plugins

Rich plugins available. See documentation for details.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @antdv-next/x-markdown

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229