mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
document /cmark and Markdown extensions in man page (#1344)
* document /cmark in man page * document Markdown extension in man page * fix spoiler wording Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de> --------- Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
This commit is contained in:
parent
ee5b33978a
commit
1b00696bcc
1 changed files with 18 additions and 0 deletions
|
@ -160,6 +160,12 @@ Send a message as a reaction when you’re replying to a message.
|
||||||
*/md* _<message>_::
|
*/md* _<message>_::
|
||||||
Force Markdown when sending the current message.
|
Force Markdown when sending the current message.
|
||||||
|
|
||||||
|
*/cmark* _<message>_::
|
||||||
|
Disables most of our extensions to cmark (CommonMark), including the
|
||||||
|
newline-in-input = newline-in-output behaviour, strikethrough and spoilers. You
|
||||||
|
may still force newlines with 2 spaces or a backslash before the line ending or
|
||||||
|
insert HTML elements.
|
||||||
|
|
||||||
*/plain* _<message>_::
|
*/plain* _<message>_::
|
||||||
Force plain text when sending the current message.
|
Force plain text when sending the current message.
|
||||||
|
|
||||||
|
@ -253,6 +259,18 @@ Converts a room to a direct conversation.
|
||||||
*/converttoroom*::
|
*/converttoroom*::
|
||||||
Converts a direct conversation to a normal room.
|
Converts a direct conversation to a normal room.
|
||||||
|
|
||||||
|
== MARKDOWN EXTENSIONS
|
||||||
|
|
||||||
|
*newline (+\n+)*::
|
||||||
|
A single newline will be turned into `<br>` instead of a space.
|
||||||
|
|
||||||
|
*+~~text~~+*::
|
||||||
|
Make text strikethrough. HTML putput: `<del>text</del>`
|
||||||
|
|
||||||
|
*`||spoiler|text||`*::
|
||||||
|
Hide text and set an optional spoiler. Note that Nheko does not display the
|
||||||
|
spoiler warning currently. HTML output: `<span data-mx-spoiler="spoiler">text</span>`
|
||||||
|
|
||||||
== FILES
|
== FILES
|
||||||
|
|
||||||
*Configuration file*::
|
*Configuration file*::
|
||||||
|
|
Loading…
Reference in a new issue