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

@vscode/markdown-it-katex

Package Overview
Dependencies
Maintainers
7
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode/markdown-it-katex - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

types.d.ts

12

dist/index.js

@@ -386,7 +386,5 @@ "use strict";

function default_1(md, options) {
// Default options
options = options || {};
const enableBareBlocks = options.enableBareBlocks;
const enableMathBlockInHtml = options.enableMathBlockInHtml;
const enableMathInlineInHtml = options.enableMathInlineInHtml;
const enableBareBlocks = options?.enableBareBlocks;
const enableMathBlockInHtml = options?.enableMathBlockInHtml;
const enableMathInlineInHtml = options?.enableMathInlineInHtml;
const katexInline = (latex) => {

@@ -398,3 +396,3 @@ const displayMode = /\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(latex);

catch (error) {
if (options.throwOnError) {
if (options?.throwOnError) {
console.log(error);

@@ -413,3 +411,3 @@ }

catch (error) {
if (options.throwOnError) {
if (options?.throwOnError) {
console.log(error);

@@ -416,0 +414,0 @@ }

{
"name": "@vscode/markdown-it-katex",
"version": "1.0.1",
"version": "1.0.2",
"description": "Markdown-it plugin that provides VS Code's KaTeX support",
"main": "dist/index.js",
"types": "types.d.ts",
"files": [
"dist/index.js"
"dist/index.js",
"types.d.ts"
],

@@ -9,0 +11,0 @@ "scripts": {

@@ -22,3 +22,3 @@ # Markdown-it Katex

```bash
npm install @iktakahiro/markdown-it-katex
npm install @vscode/markdown-it-katex
```

@@ -30,3 +30,3 @@

var md = require('markdown-it')(),
mk = require('@iktakahiro/markdown-it-katex');
mk = require('@vscode/markdown-it-katex');

@@ -42,3 +42,3 @@ md.use(mk);

```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css">
```

@@ -45,0 +45,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