Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
critic-markup
Advanced tools
This package is an implementation of CriticMarkup in JavaScript as a Node.js package/module. It provides functions to parse CriticMarkup syntax or render it into HTML.
Install via npm
:
npm install critic-markup
The critic-markup
package exposes two functions, parse()
and render()
. The parse()
function returns an array of all the CriticMarkup tag occurrences in a string with their most important metadata. The render()
function replaces all CriticMarkup tags with their HTML equivalent in the input.
import { parse, render } from 'critic-markup';
parse(`Lorem{++ ipsum++} dolor sit amet.`);
// [{
// type: "addition",
// inputText: "Lorem{++ ipsum++} dolor sit amet.",
// matchedText: "{++ ipsum++},
// start: 5,
// end: 17,
// length: 12,
// content: { addition: " ipsum" }
// }]
render(`Lorem{++ ipsum++} dolor sit amet.`);
// Lorem<ins> ipsum</ins> dolor sit amet.
All ideas, recommendations, bug reports, pull requests are welcome. 🙂
FAQs
CriticMarkup in JavaScript
We found that critic-markup 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.