Socket
Socket
Sign inDemoInstall

@unified-latex/unified-latex-util-print-raw

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @unified-latex/unified-latex-util-print-raw

Print a unified-latex AST with no fancy formatting


Version published
Weekly downloads
1.9K
decreased by-33.56%
Maintainers
1
Install size
38.4 kB
Created
Weekly downloads
 

Changelog

Source

v1.7.1

  • Types fix for @unified-latex/unified-latex-types
  • Fixed AST when expanding \sysdelim macros for rendering \systeme{} macros with KaTeX

Readme

Source

unified-latex-util-print-raw

What is this?

Functions to print a unified-latex Abstract Syntax Tree (AST) to a string.

When should I use this?

If you want to directly print an Ast.Ast to a string without any pretty printing or formatting.

Install

npm install @unified-latex/unified-latex-util-print-raw

This package contains both esm and commonjs exports. To explicitly access the esm export, import the .js file. To explicitly access the commonjs export, import the .cjs file.

Functions

printRaw(node, options)

Renders the AST to a string without any pretty printing.

function printRaw(
  node: Printable | Printable[],
  options: { asArray: false }
): string;

Parameters

ParamTypeDescription
nodePrintable | Printable[]
options{ asArray: false; }* Setting asArray to true will return an array of strings and the symbol linebreak, so that printing can be customized.

Constants

NameType
linebreakSymbol

Keywords

FAQs

Last updated on 19 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc