简体   繁体   English

给定html怎么写成markdown?

[英]How to write given html in markdown?

I want to write我想写

<div style="text-align :center"><code>C = P<sup>e</sup> / n</code></div>

in markdown. What is the equivalent in markdown?在 markdown 中。markdown 中的等价物是什么?

You can Use tools Like HTML To MD你可以使用工具像HTML 到 MD

So Your HTML code in MD will Be所以您在 MD 中的 HTML 代码将是

`C = Pᵉ / n`

But according to this Answer On Stackoverflow但是根据这个关于 Stackoverflow 的回答

native markdown doesn't support text alignment without html + css.本机 markdown不支持没有 html + css 的文本 alignment。

Markdown doesn't support text alignment without html or css And also cannot use superscript or subscript in Markdown but there are other ways for example: Markdown 不支持没有 html 或 css 的文本 alignment 并且也不能在 Markdown 中使用上标或下标,但还有其他方法,例如:

You Can use websites Like Superscript and Subscript Numbers Or Superscript and Subscript Letters and copy whatever character you want and use it您可以使用诸如上标和下标数字上标和下标字母之类的网站,并复制您想要的任何字符并使用它

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

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