Nutritious Pumpkin Mash

# npm

## ng-katex

2.0.3 • Public • Published

# ng-KaTeX

## Description

Angular module to write beautiful math expressions in TeX syntax boosted by KaTeX library. You can see a demo here.

## Install

To install the module you can simply type it on your command line:

npm install ng-katex --save


To add the module to your project add the KatexModule to import's field of your parent module:

#### Important!

If you're using angular-cli, add the katex css import to your styles.css:

If you're not using the angular-cli, import the stylesheet to your index.html:

## Usage

You can write a LaTeX equation as follows:

Also, you can add options to ng-katex components with:

The options object structure is defined here.

If you want to write a paragraph with LaTeX equations, you can do it as follows:

If you want to write HTML with LaTeX equations, you can do it as follows: (Security Note: this bypasses Angular DOM Sanitization)

## Changelog

See changelog page to get info about release changes.

## Keywords

none

### Install

npm i ng-katex

2,044

2.0.3

none

154 kB

55