-1

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?

Filburt
  • 17,626
  • 12
  • 64
  • 115
lorem1213
  • 433
  • 4
  • 11
  • 2
    Which version of markdown? It's not the most standardized format in the world. Have you looked up syntax documentation on markdown? What did you find? Did you try to translate it yourself? Did you get stuck? What do you have so far? – Liftoff Aug 20 '21 at 07:55
  • 2
    The question is starting from a weird assumption. The assumption is that markdown is a standard markup code; it is not! Depending on the platform you're dealing with, markdown might have been implemented in slightly different flavours. In order to answer your question, you will need to engage with the platform documentation because each platform would have a slightly different solution to your problem. – Adriano Aug 20 '21 at 07:56
  • 1
    SO is not a code writing service. – Rob Aug 20 '21 at 12:58

1 Answers1

1

You can Use tools Like HTML To MD

So Your HTML code in MD will Be

`C = Pᵉ / n`

But according to this Answer On Stackoverflow

native markdown doesn't support text alignment without html + css.

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:

You Can use websites Like Superscript and Subscript Numbers Or Superscript and Subscript Letters and copy whatever character you want and use it

Aditya
  • 1,132
  • 1
  • 9
  • 28