@eternaltwin/marktwin
v0.6.0
Published
Marktwin parser and formatter
Readme
Marktwin
Markup code used by Eternal-Twin for its rich text.
Formatting
Spans
**Strong (bold)**
_Emphasis (italic)_
~~Strike-through~~
__Underline__ or [u][/u]
||Spoiler|| or [spoiler][/spoiler]
`Inline code` or [c][/c]
[big][/big]
[bad][/bad]
[Link text](Link URI)Blocks
[quote=author][/quote]
[mod][/mod]
[admin][/admin]
[animation][/animation]
[announcement][/announcement]
[aparte][/aparte]
[rp=author][/rp]
[collapse=label][/collapse]
[ul][li][/li][/ul]
[ol][li][/li][/ol]
```code``` or [code][/code]The [quote], [rp] and [collapse] arguments accept inline formatting:
[quote=**Bob**] is valid.
Components
@{userId}
[poll][/poll]Icons
Icons are [a-z_0-9]+ sequences between colons.
:slight_smile:
:tid:
:intrusion_ccard_50:Escape
You can escape the next formatting by prefixing it with a backslash.
Restrictions
You can't nest blocks more than 5 times.
[mod][mod][mod][mod][mod]OK[/mod][/mod][/mod][/mod][/mod]
[mod][mod][mod][mod][mod][mod]Not OK[/mod][/mod][/mod][/mod][/mod][/mod]