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

prettier-plugin-latex

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-latex - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

dist/index.d.ts

23

package.json
{
"name": "prettier-plugin-latex",
"description": "A Prettier plugin to reformat LaTeX source",
"version": "1.2.3",
"version": "1.2.4",
"author": {

@@ -15,8 +15,8 @@ "name": "Jason Siefken",

"files": [
"dist/prettier-plugin-latex/**"
"dist/**"
],
"main": "dist/prettier-plugin-latex/src/index.js",
"main": "dist/index.js",
"exports": {
".": "./dist/prettier-plugin-latex/src/index.js",
"./standalone": "./dist/prettier-plugin-latex/src/standalone.js"
".": "./dist/index.js",
"./standalone": "./dist/standalone.js"
},

@@ -30,5 +30,6 @@ "scripts": {

"dependencies": {
"jest-esm-transformer": "^1.0.0",
"prettier": "^2.6.2",
"rehype-stringify": "^9.0.3"
"@unified-latex/unified-latex-prettier": "^1.0.5",
"@unified-latex/unified-latex-util-parse": "^1.0.5",
"@unified-latex/unified-latex-util-print-raw": "^1.0.5",
"prettier": "^2.6.2"
},

@@ -42,6 +43,7 @@ "devDependencies": {

"babel-loader": "8.2.4",
"babel-plugin-add-module-exports": "^1.0.4",
"esbuild-jest": "^0.5.0",
"esbuild-runner": "^2.2.1",
"eslint": "^8.13.0",
"jest": "27.5.1",
"jest-esm-transformer": "^1.0.0",
"mkdirp": "1.0.4",

@@ -51,2 +53,3 @@ "pegjs": "0.10.0",

"prettier-plugin-pegjs": "^0.5.0",
"rehype-stringify": "^9.0.3",
"ts-jest": "^27.1.4",

@@ -63,3 +66,3 @@ "ts-loader": "^9.2.8",

"transformIgnorePatterns": [
"node_modules/(?!unified|bail|is-plain-obj|trough|vfile|unist.*)"
"node_modules/(?!unified|bail|is-plain-obj|trough|vfile|unist.*|@unified-latex)"
],

@@ -66,0 +69,0 @@ "transform": {

@@ -127,4 +127,9 @@ # prettier-plugin-latex

**Note:** Prettier assumes that plugins are CommonJS modules with default exports. However,
Webpack does _not_ translate `export default ...` syntax into a CommonJS default export. For
this reason, the actual entry point to the plugin is `src/commonjs-export.cjs` which uses the
CommonJS format to re-export the plugin as a default CommonJS export.
### Code structure
`prettier-plugin-latex` uses the [latex-ast-parser](https://github.com/siefkenj/latex-parser) library to parse the latex file and convert it to a prettier AST. This library is just a thin layer over `latex-ast-parser`
`prettier-plugin-latex` uses the [unified-latex](https://github.com/siefkenj/latex-parser) library to parse the latex file and convert it to a prettier AST. This library is just a thin layer over `latex-ast-parser`
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