markup-tools
Advanced tools
Comparing version 2.3.0 to 2.4.0
{ | ||
"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 |
25861
357