1

大家好,我正在 Jupyter 中开始一个新的 Python 3 文档,当我尝试将测试放在降价的中心时,我输入: <h1><center> Whatever Report </center></h1> <center> Based on the data from *January 1, 2018* </center>

如您所见,我尝试将日期斜体,但是当我运行命令时,Based on the data from *January 1, 2018*结果会打印出来。为什么文字没有斜体?

非常感谢!

4

3 回答 3

1

不是任何一种降价专家,但看起来星号在 HTML 标记中不会被解释为斜体。第一个有效,第二个无效。

<center>Based on the data from <i>January 1, 2018</i></center>
<center>Based on the data from *January 1, 2018*<center>

不确定为 SO 格式化该输出。哈。

于 2018-11-09T00:01:57.533 回答
0

也许已经很晚了,但是您可以尝试使用$\unicode{x212B}$它,它会以正确的格式呈现。原始解决方案可以在https://github.com/mathjax/MathJax/issues/795找到。

于 2020-05-12T03:04:40.263 回答
0

您需要将降价放在降价单元格中,而不是嵌入到 html 中。 http://www.firstpythonnotebook.org/markdown/

于 2018-11-08T23:58:53.173 回答