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

@comark/plugin-beautiful-mermaid

Latest version: v0.0.1

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: atinux, farnabaz
1,116 Stars
63 Forks
2 Versions
TypeScript Repo language

Scan summary

@comark/plugin-beautiful-mermaid was last scanned on 1 Dec 2026 at version 0.0.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 1 Dec 2026.
  • Findings: No rules fired in version 0.0.1.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.1 LATEST 1 Dec 2026 No rules fired
0.0.0-stage 1 Dec 2026 Not shown

No rules fired in 0.0.1

Findings

Findings for v0.0.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.0.1; other versions have their own rules, not their own score.

README

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

@comark/plugin-beautiful-mermaid

npm version npm downloads CI Documentation license

Mermaid plugin for Comark. Renders fenced ```mermaid blocks as diagrams with beautiful-mermaid, in HTML, terminal, Vue, React, Svelte and Angular.

Features

  • beautiful-mermaid ships as a dependency, so there is nothing else to install
  • Diagrams render to inline SVG, or to ASCII in the terminal
  • Component props on the opening fence, such as {.class} and {theme="nord"}
  • Light and dark themes, following the <html> element's dark class
  • Mermaid components for Vue, React, Svelte, Angular, HTML and ANSI
  • Full TypeScript support

Installation

npm install @comark/plugin-beautiful-mermaid
# or
pnpm add @comark/plugin-beautiful-mermaid

Usage

import { parseMarkdown } from 'comark'
import mermaid from '@comark/plugin-beautiful-mermaid'

const result = await parseMarkdown('```mermaid\ngraph TD; A-->B;\n```', {
  plugins: [mermaid()],
})

The plugin stores the diagram source in the node. Rendering needs a Mermaid component:

<script setup lang="ts">
import { Markdown } from '@comark/vue'
import mermaid from '@comark/plugin-beautiful-mermaid'
import { Mermaid } from '@comark/plugin-beautiful-mermaid/vue'
</script>

<template>
  <Markdown :plugins="[mermaid()]" :components="{ mermaid: Mermaid }">{{ content }}</Markdown>
</template>
import { Markdown } from '@comark/react'
import mermaid from '@comark/plugin-beautiful-mermaid'
import { Mermaid } from '@comark/plugin-beautiful-mermaid/react'

<Markdown plugins={[mermaid()]} components={{ mermaid: Mermaid }}>{content}</Markdown>
<script lang="ts">
  import { Markdown } from '@comark/svelte'
  import mermaid from '@comark/plugin-beautiful-mermaid'
  import { Mermaid } from '@comark/plugin-beautiful-mermaid/svelte'
</script>

<Markdown {content} plugins={[mermaid()]} components={{ mermaid: Mermaid }} />

Each component entry exports only its component, so the plugin always comes from the package root. The Angular adapter (@comark/plugin-beautiful-mermaid/angular) and the HTML and ANSI render functions (@comark/plugin-beautiful-mermaid/html, @comark/plugin-beautiful-mermaid/ansi) follow the same rule.

API

  • mermaid(options?) returns the plugin. Options: theme and themeDark set the theme on every diagram node.
  • Mermaid components are exported from ./vue, ./react, ./svelte, ./angular, ./html and ./ansi.

Documentation

Full guide and API reference at comark.dev/plugins/official/beautiful-mermaid.

License

Made with ❤️

Published under MIT License.

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 @comark/plugin-beautiful-mermaid

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229