0.3.0 • Published 1 year ago
rspress-plugin-supersub v0.3.0
rspress-plugin-supersub 
Rspress plugin to add superscript(<super></super>
) and subscript(<sub></sub>
) support.
NOTE: The common subscript syntax ~
conflicts with the delete syntax(<del></del>
), which is more commonly used, so this plugin uses _
as the subscript syntax, and you can also modify the superscript and subscript through configuration.
- 2^10^
- a^2^ + b^2^ = c^2^
- H_2_O
- Almost every developer's favorite molecule is C*8_H_10_N_4_O_2*, also known as "caffeine."
Usage
npm i rspress-plugin-supersub
pnpm add rspress-plugin-supersub
import * as path from 'path';
import { defineConfig } from 'rspress/config';
import supersub from 'rspress-plugin-supersub';
export default defineConfig({
root: path.join(__dirname, 'docs'),
plugins: [supersub()],
});
Configure
superSyntax
Define the syntax for superscript.
- Type:
string
- Default:
^
(matching^sup^
)
subSyntax
Define the syntax for subscript.
- Type:
string
- Default:
_
(matching_sub_
)
0.3.0
1 year ago
0.2.0
1 year ago
0.1.2-beta.0
1 year ago
0.1.1-beta.0
1 year ago
0.1.1
1 year ago
0.1.3
1 year ago
0.1.4-beta.0
1 year ago
0.1.3-beta.0
1 year ago
0.1.0
1 year ago