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

md.js

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md.js

a lightweight markdown parser

  • 0.1.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by139.13%
Maintainers
1
Weekly downloads
 
Created
Source

MD.js

  • ~1kb minified+gzipped
  • ~1.5kb minified

npm licence

MD is a lightweight markdown parser with default support for langauge specific code blocks, for example

// replace . with `
```javascript
	var int = 0;

will output the following

```html
<pre><code class="language-javascript">
	var int = 0;
</code></pre>

and <script>alert(1);</script> will be converted to &lt;script&gt;alert(1)&lt;/script&gt; and <a href="javascript:alert('xss')"></a> will be converted to <a href="#javascript&#58;alert('xss')"></a>

Browser Support

  • Edge
  • IE 8+
  • Chrome
  • Firefox
  • Safari

Installation

direct download
<script src=md.min.js></script>
CDN
<script src=https://unpkg.com/md.js@0.1.2/md.min.js></script>
npm
npm install md.js --save

Examples

demo

Keywords

FAQs

Package last updated on 20 Nov 2016

Did you know?

Socket

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.

Install

Related posts

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