
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@uniwebcms/content-reader
Advanced tools
A JavaScript library for converting Markdown content into ProseMirror-compatible document structures. This library is designed to work seamlessly with TipTap v2 and provides enhanced Markdown parsing capabilities with support for extended syntax.
Enhanced Images: Support for image roles (content, background, icon, gallery) using prefix syntax:


Enhanced Links: Button variants with predefined styles:
[Button Text](button:https://example.com)
Tables with Alignment: Full support for aligned columns:
| Left | Center | Right |
| :--- | :----: | ----: |
| Text | Text | Text |
npm install @uniwebcms/content-reader
Basic usage:
const { markdownToProseMirror } = require("@uniwebcms/content-reader");
const markdown = `
# Hello World
This is a **bold** statement with a [link](https://example.com).
- List item 1
- List item 2
- Nested item
`;
const doc = markdownToProseMirror(markdown);
The library is designed to work seamlessly with TipTap editors:
import { Editor } from "@tiptap/core";
import { markdownToProseMirror } from "@uniwebcms/content-reader";
const editor = new Editor({
content: markdownToProseMirror(markdown),
// ... other TipTap configuration
});
The library supports extended image syntax for different display contexts:
const markdown = `



`;
const doc = markdownToProseMirror(markdown);
// Each image will have a 'role' attribute in its output structure
Tables support column alignment and formatted content:
const markdown = `
| Name | Status | Actions |
|:-----|:------:|--------:|
| John | Active | **Edit** |
| Jane | Away | *View* |
`;
const doc = markdownToProseMirror(markdown);
// Table cells will have appropriate alignment attributes
The library is organized into several modules:
We welcome contributions! Please see our contributing guidelines for details.
Clone the repository:
git clone https://github.com/uniwebcms/content-reader.git
Install dependencies:
npm install
Run tests:
npm test
The project uses Jest for testing. Run the test suite:
npm test
Or in watch mode:
npm run test:watch
Apache License 2.0 - See LICENSE for details.
Developed and maintained by UniWeb CMS. Special thanks to all contributors.
FAQs
Markdown to ProseMirror document structure converter
We found that @uniwebcms/content-reader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.