Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@bobril/mdx

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bobril/mdx

Default components for Bobril Mdx (*.mdxb)

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

mdx

Helper library of components for mdx in Bobril-build

Change log

1.2.0

  • Added optional support for mermaid diagrams

1.0.0

  • Fixed javascript xss in a href attribute

Optional parts

Syntax highlighter

Add @bobril/highlighter to dependencies.

import * as mdxCodeBlock from "@bobril/mdx/highlighter";
import * as styles from "@bobril/highlighter/styles";

mdxCodeBlock.setDefaultCodeBlock(styles.docco);

Mermaid diagrams

It should be combined with @bobril/highlighter by installing it after highlighter. Add @bobril/mermaid to dependencies if you want to customize options for mermaid.

import { install } from "@bobril/mdx/mermaid.tsx";

install();

// this is optional
import * as mermaid from "@bobril/mermaid";
mermaid.setTheme("forest");

Keywords

bobril

FAQs

Package last updated on 05 Sep 2025

Did you know?

Socket

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.

Install

Related posts