Tilde
概观
Tilde optionally adds two different features which are syntactically built around the ~ character: delete which inserts <del></del> tags and subscript which inserts <sub></sub> tags.
删除
To wrap content in a delete tag, simply surround the text with double ~. You can also enable smart_delete in the options. Smart behavior of delete models that of BetterEm.
Delete Example
~~Delete me~~
Delete me
Subscript
To denote a subscript, you can surround the desired content in single ~. It uses Pandoc style logic, so if your subscript needs to have spaces, you must escape the spaces.
Subscript Example
CH~3~CH~2~OH text~a\ subscript~
CH3CH2OH
texta subscript
选项
| Option | Type | Default | Description |
|---|---|---|---|
smart_delete |
bool | True |
Use smart logic with delete characters. |
delete |
bool | True |
Enable delete feature. |
subscript |
bool | True |
Enable subscript feature. |