Putting Math Equations into Markdown Document

Posted on
  • Putting Math Equations into Markdown Document

    MathJax
    asciimath

    I copied an HTML example from the page
    mathjax/start
    and pasted it here.

    <!DOCTYPE html>





    When `a != 0`, there are two solutions to `ax^2 + bx + c = 0` and they are

    `x = (-b +- sqrt(b^2-4ac))/(2a) .`


    Look at mathjax.md with a text editor such as wordpad. It's the file I used to create this post.

    Looks like it didn't work on this site. Perhaps it's the way I pasted the html?
    Trying code block

    <!DOCTYPE html>
    <html>
    <head>
    <title>MathJax AsciiMath Test Page</title>
    <script type="text/javascript" async
      src="https://cdn.mathjax.org/mathjax/lat­est/MathJax.js?config=AM_CHTML"></script­>
    </head>
    <body>
    
    <p>When `a != 0`, there are two solutions to `ax^2 + bx + c = 0` and
    they are</p>
    <p style="text-align:center">
      `x = (-b +- sqrt(b^2-4ac))/(2a) .`
    </p>
    
    </body>
    </html
    

    2 Attachments

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Putting Math Equations into Markdown Document

Posted by Avatar for ClearMemory041063 @ClearMemory041063

Actions