nizel-plugin-typography
v0.1.10
Published
Typography extension plugin for Nizel.
Downloads
2,014
Readme
nizel-plugin-typography
Inline typography extensions for Nizel.
The plugin adds small, explicit inline extensions that are common in writing apps but not part of pure Markdown: mark/highlight, subscript, and superscript.
The browser build exposes NizelTypography from dist/typography.iife.js.
Install
npm install nizel-plugin-typographyUsage
import { useNizel } from 'nizel';
import { typographyPlugin } from 'nizel-plugin-typography';
const nizel = useNizel({
plugins: [typographyPlugin()],
});Syntax
==highlighted text==
H~2~O
E = mc^2^Options
| Option | Type | Default | Description |
| --- | --- | --- | --- |
| mark | boolean | true | Enable ==mark== output. |
| subscript | boolean | true | Enable ~sub~ output. |
| superscript | boolean | true | Enable ^sup^ output. |
Output
<mark>highlighted text</mark>
H<sub>2</sub>O
E = mc<sup>2</sup>License
MIT
