-
-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding representation of rich text in text messages #166
Comments
Will try to make markdown as a common syntax as it being the majority base syntax, and an attribute to specify whether the text should be in markdown-like format. However Markdown is still less organised, and harder to escape compare to HTML (which has a relatively established standard for formatting). I'm still undecided about whether to use HTML or Markdown for this. |
Telegram recently added more formatting and nesting support to its bot API. They have resolved to a new variation of Markdown, and extending the existing HTML syntax for the new change. However, in the background Telegram is using the message entity format, i.e. a mapping of offset, length, entity type and parameters. Ideas on which format is better and how to establish the spec is welcomed. |
Looking for a general, easy to parse, convert and subset representation of rich text in text messages.
Rich text representation in some IMs:
Bold, italics, monospaced, monospaced block, link, strikethrough and underline, @ reference. Nesting supported.
(offset, length, attributes); Markdown subset; HTML subset;
Bold, italics, strikethrough, quote, inline code, block code, list, link, user&channel reference, etc. Nesting allowed.
mrkdwn
(variation of Markdown)Bold, italics, strikethrough, underline, inline code, code block, syntax highlighting, spoiler alerts. Nesting allowed.
Markdown subset.
None.
Bold, italic, strikethrough, monospace, codeblock, LaTeX (
\(\sin(2\pi)\)
).Web only.
Inline image, custom emoticon.
CoolQ token in messages.
Custom emoticon.
Unicode Private Use Area.
Bold, italics, strikethrough, monospaced, quote. Nesting allowed.
Markdown subset, extended. (XEP-0393)
None.
Bold, italic, strikethrough, inline code, image, link. Nesting allowed.
Markdown subset.
Bold, italic, strikethrough, inline code, code block.
Markdown-like.
The text was updated successfully, but these errors were encountered: