Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markdown-it-katex

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-katex - npm Package Compare versions

Comparing version 1.0.9 to 1.1.0

LICENSE

11

index.js

@@ -223,3 +223,3 @@ /* Process inline math */

module.exports = function math_plugin(md) {
module.exports = function math_plugin(md, options) {
// Default options

@@ -231,5 +231,9 @@

blockClose = '$$';
options = options || {};
// set KaTeX as the renderer for markdown-it-simplemath
var katexInline = function(latex){
return katex.renderToString(latex, {"displayMode" : false});
options.displayMode = false;
return katex.renderToString(latex, options);
};

@@ -242,3 +246,4 @@

var katexBlock = function(latex){
return katex.renderToString(latex, {"displayMode" : true});
options.displayMode = true;
return katex.renderToString(latex, options);
}

@@ -245,0 +250,0 @@

{
"name": "markdown-it-katex",
"version": "1.0.9",
"version": "1.1.0",
"description": "Fast math support for markdown-it with KaTeX",

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

@@ -46,2 +46,7 @@ # markdown-it-katex

`KaTeX` options can be supplied with the second argument to use.
```javascript
md.use(mk, {"throwOnError" : false, "errorColor" : " #cc0000"});
```
## Examples

@@ -48,0 +53,0 @@

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