
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@cocy/transform-md
Advanced tools
Uses [Remark](https://github.com/remarkjs/remark) to transform your Markdown content to HTML.
Uses Remark to transform your Markdown content to HTML.
import md from '@cocy/transform-md';
cocy.use(md, options?);
See here.
You can load assets in frontmatter by using the assets key:
---
title: Hello!
assets:
thumb: ./my-photo.jpg
---
On the CocyFile object, you can retrieve the asset using file.assets.get('thumb'). Read more about assets with Cocy here. Inline image assets (![]()) work as well.
By default, the following plugins are loaded, which you can modify using hooks as shown above:
html: transforms Markdown to HTMLfrontmatter: parses YAML frontmatterextract: adds frontmatter data to the vfileassetResolver: custom plugin to resolve assetsexcerptGenerator: also custom, adds an excerpt to the result's attributes, which is either the frontmatter value of excerpt, all paragraphs before a <!-- more --> tag or the first paragraph of text (in that order). Can be disabled by setting config.generateExcerpt to false.FAQs
Uses [Remark](https://github.com/remarkjs/remark) to transform your Markdown content to HTML.
We found that @cocy/transform-md demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.