Html 电报降价语法:粗体*和*斜体?(2018 年 9 月)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/52495614/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 15:44:33  来源:igfitidea点击:

Telegram markdown syntax: Bold *and* italic? (September 2018)

htmlmarkdowntelegrammarkuptext-formatting

提问by Nemgathos

By looking at Telegram's “Markdown Syntax” Wiki page, it should be relatively easy to create text that is bold and italic.

通过查看Telegram 的“Markdown Syntax” Wiki 页面,创建粗体和斜体的文本应该相对容易。

There, it says that

在那里,它说

*this is in italic* and _so is this_

**this is in bold** and __so is this__

***this is bold and italic*** and ___so is this___

results in

结果是

this is in italicand so is this

this is in boldand so is this

this is bold and italicand so is this

这个是斜体的这个也是

这是粗体的这也是

这是粗体和斜体这也是

.

.

But using

但是使用

***this is bold and italic***

results in

结果是

*this is bold an italic*

*这是粗斜体*

and

___this is bold and italic___

results in

结果是

_this is bold an italic_

_这是粗斜体_

.

.

That is: Telegram's markdown interpretation must have changed.

那就是:Telegram 的 markdown 解释肯定已经改变了。

When programming a Telegram bot, it is possible to use HTML instead of markdown, but I would like to simply write some bold and italic textto my friends while regularly chatting with them.

在编写 Telegram bot 时,可以使用 HTML 代替 markdown,但我想简单地写一些粗体和斜体文本给我的朋友,同时定期与他们聊天。

Using the markdown syntax that is used here does not work. I already tried it.

使用此处使用的降价语法不起作用。我已经试过了。

采纳答案by Stefan_Fairphone

You can highlight the text and then press the three-dot button in the upper right corner. It will present you with a choice of formatting options. Do it twice and first choose one formatting and then the other. The text will be bold and italic as a result.

您可以突出显示文本,然后按右上角的三点按钮。它将为您提供格式选项的选择。做两次,先选择一种格式,然后再选择另一种。因此,文本将变为粗体和斜体。

回答by ragip

How to bold or italic font on Telegram?

如何在 Telegram 上使用粗体或斜体字体?

  • Bold: Double *= **hello world**
  • Italic: Double _= __ hello world__`
  • Monospace: Triple `= ```hello world```
  • 粗体:双*=**hello world**
  • 斜体:Double _= __ hello world__`
  • 等宽:三重`=```hello world```