Open gagarski opened 1 month ago
"\n" is the newline character with the code 0x0A there. The exact way to use it in a string depends on your programming language, but most popular languages allow to specify it as "\n" inside strings.
Can I send
<blockquote expandable="expandable">
or<blockquote expandable="">
.
Yes. Actually, <blockquote expandable>
is a shortcut for <blockquote expandable="">
.
It's impossible to check now (clients do not seem to support expandable quotes yet),
No need to use other clients for checking. You can just look at the response of sendMessage
and the entities of the sent message.
Given that expandable is not a standard attribute for <blockquote> tag, it might be a good idea to provide more pedantic syntax, like <blockquote class="expandable">
Are you afraid of the possibility that the attribute expandable
can be added to the blockquote
tag someday?
Let me copy an HTML syntax example from docs to here:
Even though it's not explicitly mentioned, line break in HTML mode (unlike real HTML) is represented by a literal newline symbol.
However, inside blockquote example we see
\n
character syntax. Quick experiments have shown me that when I send\n
(either inside blockquote, or outside) it gets rendered as literal\n
, i. e. hte following markup:becomes this:
This seems to be a mistake in the example.
Besides that, I have two more questions/suggestions for new expandable blockquote syntax:
<blockquote expandable="expandable">
or<blockquote expandable="">
. It's impossible to check now (clients do not seem to support expandable quotes yet), but if no, it might be a good idea to support it, since typical HTML boolean attributes support all three options: https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTMLexpandable
is not a standard attribute for<blockquote>
tag, it might be a good idea to provide more pedantic syntax, like<blockquote class="expandable">