From a132a21da7e6ee24ddb876ef1c1dcfcaffd6e4cd Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 4 Jun 2020 21:17:27 -0400 Subject: [PATCH] Add documentation about escaping blocks in doc/BBCode --- doc/BBCode.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/BBCode.md b/doc/BBCode.md index cab51bd09..59f741449 100644 --- a/doc/BBCode.md +++ b/doc/BBCode.md @@ -613,15 +613,26 @@ On Mastodon this field is used for the content warning. Result - If you need to put literal bbcode in a message, [noparse], [nobb] or [pre] are used to escape bbcode: + If you need to put literal BBCode in a message, [noparse], [nobb] or [pre] blocks prevent BBCode conversion: + Note: [code] has priority over [noparse], [nobb] and [pre] which makes them display as BBCode tags in code blocks instead of being removed. + [code] blocks inside [noparse] will still be converted to a code block. [b]bold[/b] + + Additionally, [noparse] and [pre] blocks prevent mention and hashtag conversion to links: + + + @user@domain.tld #hashtag + [nosmile] is used to disable smilies on a post by post basis