Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

[Feature] Math formula support in MarkdownTextBlock #3020

Closed

Description

@hez2010

Math formula support

I hope that math formulas in markdown can be rendered correctly.
For example:

# Math
Inline math formula: $ sum = \sum_{i=1}^n {x_i} $ (1)
Block math formula: 
$$ sum = \sum_{i=1}^n {x_i} $$ (2)

These cannot be rendered for now.

Solution

Support rendering math formula in MarkdownTextBlock.
Maybe it can use katex to support math characters.

Activity

  1. added
    feature request 📬
    on Oct 2, 2019
  2. added
    help wanted
    and removed on Oct 2, 2019
  3. michael-hawker commented on Oct 9, 2019

    @michael-hawker
    Member

    Thanks for the suggestion @hez2010.

    There doesn't seem to be the greatest consensus or support for syntax around math across markdown implementations at this time however.

    It'd probably be best to look at it like a language in a traditional backtick fence block like:

        ```math
        sum = \sum_{i=1}^n {x_i}
        ```
    

    I know @grochocki has been looking at math display for the calculator graphing mode, so he may have some good input on this space about the rendering side.

  4. grochocki commented on Oct 9, 2019

    @grochocki

    Markdown math is interesting, though it seems much more closely tied to LaTex. I haven't done enough research to understand how widespread its usage is, but for Windows Calculator, we are looking at leveraging MathML, which definitely is a widely used standard.

    Mathematical Markup Language (MathML) is a low-level specification for mathematical and scientific content on the Web and beyond (source). MathML or "pretty math" ensures that we are rendering math expressions in the same way that you might write the equation on a whiteboard.

    microsoft/calculator#338

    Rendering math is very complex, especially to cover the broad range of possible math expressions users may want to input.

  5. added
    markdown 📑
    on Apr 4, 2020
  6. yoshiask commented on Jun 11, 2020

    @yoshiask
    Contributor

    Regarding actually rendering LaTeX expressions, there is CSharpMath. The Uno Platform team is working on adding support for Uno, which would work on UWP as well (without referencing the Uno packages).

  7. locked and limited conversation to collaborators on Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request 📬help wantedmarkdown 📑

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions