New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

markup-tools

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

markup-tools - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

2

package.json
{
"name": "markup-tools",
"version": "2.3.0",
"version": "2.4.0",
"description": "Utility to format markup",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -25,4 +25,2 @@ [![Pull requests](https://img.shields.io/badge/PRs-Welcome-brightgreen.svg)](https://github.com/peerquery/markup-tools/pulls)

Exposed to the global browser window as `mtool`.
```text

@@ -32,5 +30,16 @@ <script src="https://unpkg.com/markup-tools/dist/markup-tools.min.js"></script>

Exposed to the global browser window as `mtool`. Call directly in the browser code as `mtools`
```javascript
const text = '<b>hello</b>';
const res = mtools.format.text(text);
console.log(res);
//'hello'
```
## Warning
This is a small purely Javascript-based library designed to work in both the browser and in Node.js. With no dependencies, it uses `REGEX` and helper functions to attempt to parse everything, including text string.
This is a small purely Javascript-based library designed to work in both the browser and in Node.js. With no dependencies, it uses `REGEX` and helper functions to attempt to parse everything, including html string.

@@ -37,0 +46,0 @@ ## Usage

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc