简体   繁体   English

Jupyter / IPython Notebook 文本编辑为 Markdown

[英]Jupyter / IPython Notebook text editing as markdown

Hi all I'm starting a new Python 3 document in Jupyter, and when I tried to put the test in the center in a markdown, I put: <h1><center> Whatever Report </center></h1> <center> Based on the data from *January 1, 2018* </center>大家好,我正在 Jupyter 中创建一个新的 Python 3 文档,当我尝试将测试放在降价的中心时,我输入了: <h1><center> Whatever Report </center></h1> <center> Based on the data from *January 1, 2018* </center>

As you can see I tried to italicize the date, yet when I ran the command, Based on the data from *January 1, 2018* is printed as a result.正如您所看到的,我尝试将日期设为斜体,但是当我运行命令时,结果打印出Based on the data from *January 1, 2018* Why aren't the texts being italicized?为什么文字没有斜体?

Thanks much!非常感谢!

Not any kind of markdown expert, but it looks like the asterisks are not interpreted as italics when within an HTML tag.不是任何类型的降价专家,但看起来星号在 HTML 标签中没有被解释为斜体。 First one works, second does not.第一个有效,第二个无效。

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

Not sure to format that output for SO.不确定为 SO 格式化该输出。 Ha.哈。

You need to put your markdown in markdown cells, not embedded in html.您需要将 markdown 放在 markdown 单元格中,而不是嵌入在 html 中。 http://www.firstpythonnotebook.org/markdown/ http://www.firstpythonnotebook.org/markdown/

Maybe it's very late, but you can try to use $\\unicode{x212B}$ and it will render as the right format.也许已经很晚了,但是您可以尝试使用$\\unicode{x212B}$并且它将呈现为正确的格式。 The original solution can be found at https://github.com/mathjax/MathJax/issues/795 .原始解决方案可以在https://github.com/mathjax/MathJax/issues/795找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM