Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
micromark-util-combine-extensions
Advanced tools
micromark utility to combine syntax or html extensions
The micromark-util-combine-extensions package is a utility for combining syntax extensions for the micromark markdown parser. It allows developers to easily merge multiple extensions, which can add or modify the functionality of the markdown parser.
Combining Syntax Extensions
This feature allows developers to combine multiple markdown syntax extensions into a single extension object that can be passed to micromark. The `combineExtensions` function takes an array of extension objects and merges them.
const combinedExtensions = combineExtensions([extension1, extension2]);
Remark-parse is a markdown parser powered by remark, which is part of the unified collective. It is similar to micromark-util-combine-extensions in that it allows for the parsing of markdown with the possibility of adding plugins (extensions), but it is a full parser rather than just a utility for combining extensions.
Markdown-it is a markdown parser with a plugin system that allows for extending its capabilities. Similar to micromark-util-combine-extensions, markdown-it plugins can add or modify parsing functionality, but markdown-it is a standalone parser and plugin system, not just a utility for combining extensions.
Unified is an interface for processing text using syntax trees and is part of the unified collective. It can be used with various plugins to parse and serialize markdown, among other things. While it serves a broader purpose, it shares the concept of extending functionality through plugins, similar to how micromark-util-combine-extensions combines extensions for micromark.
micromark utility to combine syntax or html extensions.
This package can merge multiple extensions into one.
This package might be useful when you are making “presets”, such as
micromark-extension-gfm
.
This package is ESM only. In Node.js (version 16+), install with npm:
npm install micromark-util-combine-extensions
In Deno with esm.sh
:
import {combineExtensions} from 'https://esm.sh/micromark-util-combine-extensions@1'
In browsers with esm.sh
:
<script type="module">
import {combineExtensions} from 'https://esm.sh/micromark-util-combine-extensions@1?bundle'
</script>
import {gfmAutolinkLiteral} from 'micromark-extension-gfm-autolink-literal'
import {gfmStrikethrough} from 'micromark-extension-gfm-strikethrough'
import {gfmTable} from 'micromark-extension-gfm-table'
import {gfmTaskListItem} from 'micromark-extension-gfm-task-list-item'
import {combineExtensions} from 'micromark-util-combine-extensions'
const gfm = combineExtensions([gfmAutolinkLiteral, gfmStrikethrough(), gfmTable, gfmTaskListItem])
This module exports the identifiers
combineExtensions
and
combineHtmlExtensions
.
There is no default export.
combineExtensions(extensions)
Combine multiple syntax extensions into one.
extensions
(Array<Extension>
)
— list of syntax extensionsA single combined extension (Extension
).
combineHtmlExtensions(htmlExtensions)
Combine multiple html extensions into one.
htmlExtensions
(Array<HtmlExtension>
)
— list of HTML extensionsA single combined HTML extension (HtmlExtension
).
This package is fully typed with TypeScript. It exports no additional types.
Projects maintained by the unified collective are compatible with maintained versions of Node.js.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line,
micromark-util-combine-extensions@2
, compatible with Node.js 16.
This package works with micromark@3
.
This package is safe.
See security.md
in micromark/.github
for how to
submit a security report.
See contributing.md
in micromark/.github
for ways
to get started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
FAQs
micromark utility to combine syntax or html extensions
The npm package micromark-util-combine-extensions receives a total of 5,189,184 weekly downloads. As such, micromark-util-combine-extensions popularity was classified as popular.
We found that micromark-util-combine-extensions demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.