@vscode/markdown-it-katex
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23913
5
471
0