python - Jupyter/IPython Notebook 文本编辑为 markdown

标签 python formatting jupyter-notebook italic

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

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

非常感谢!

最佳答案

不是任何类型的 Markdown 专家,但看起来星号在 HTML 标签内时不会被解释为斜体。第一个有效,第二个无效。

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

不确定是否将输出格式化为 SO。哈。

关于python - Jupyter/IPython Notebook 文本编辑为 markdown,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53217734/

相关文章:

javascript - 如何在 Klaviyo 中将数字转换为逗号分隔值

javascript - jQuery 验证澳大利亚电话号码

python - Jupyter Notebook 错误回溯(最近一次调用最后一次):

python - 当我在 jupyter notebook 中使用 matplotlib 时,它总是引发 "matplotlib is currently using a non-GUI backend"错误?

python - 如何在 matplotlib 中制作热图?

python - 为什么 StringIO 对象比真实文件对象慢?

python - 如何像在 R 中一样轻松地使用 python 读写 googlesheets?

python - 如何使用openCV检测卫星航拍图像中的街道线?

Java DecimalFormat 获取模式作为文本

python - np.array 到 python 中的函数 - 'list' 对象不可调用