Math Symbols #356

Closed
opened 2026-01-29 14:34:37 +00:00 by claunia · 5 comments
Owner

Originally created by @forgabs on GitHub (Mar 23, 2020).

Hi! Thanks for this great plugin! Math symbols as defined in Markdig do not work in my case, is it possible to use them?

Originally created by @forgabs on GitHub (Mar 23, 2020). Hi! Thanks for this great plugin! Math symbols as defined in Markdig do not work in my case, is it possible to use them?
claunia added the questioninvalid labels 2026-01-29 14:34:37 +00:00
Author
Owner

@yang-er commented on GitHub (Mar 26, 2020):

It cannot translate $1$ into a math inline. However, ${1}$ is ok.

It refers to Markdig.Extensions.Mathematics.MathInlineParser, which comments

If a /$ is not preceded by a whitespace or punctuation, or followed by a digit
this is a not a math block

To solve this problem, I have copied the parser to my project and remove this restriction.

@yang-er commented on GitHub (Mar 26, 2020): It cannot translate `$1$` into a math inline. However, `${1}$` is ok. It refers to `Markdig.Extensions.Mathematics.MathInlineParser`, which comments > If a $/$$ is not preceded by a whitespace or punctuation, or followed by a digit > this is a not a math block To solve this problem, I have copied the parser to my project and remove this restriction.
Author
Owner

@forgabs commented on GitHub (Mar 26, 2020):

Thanks! I tried to use {A_1} and would axpect the 1 as subscript, but this doesnt work.

@forgabs commented on GitHub (Mar 26, 2020): Thanks! I tried to use ${A_1}$ and would axpect the 1 as subscript, but this doesnt work.
Author
Owner

@yang-er commented on GitHub (Mar 26, 2020):

Did you forget applying UseMathematics() to MarkdownPipelineBuilder ?

@yang-er commented on GitHub (Mar 26, 2020): Did you forget applying `UseMathematics()` to `MarkdownPipelineBuilder` ?
Author
Owner

@forgabs commented on GitHub (Mar 26, 2020):

Well I have to admit that I did not install markding. I installed the MarkDownViewer++ via the extension control panel in Notepad++ and expected that markding commands are ready to use. Do I have to make additional installations in order to get the Latex math interpreter running.

@forgabs commented on GitHub (Mar 26, 2020): Well I have to admit that I did not install markding. I installed the MarkDownViewer++ via the extension control panel in Notepad++ and expected that markding commands are ready to use. Do I have to make additional installations in order to get the Latex math interpreter running.
Author
Owner

@xoofx commented on GitHub (Mar 26, 2020):

Well I have to admit that I did not install markding. I installed the MarkDownViewer++ via the extension control panel in Notepad++ and expected that markding commands are ready to use. Do I have to make additional installations in order to get the Latex math interpreter running.

You should ask this directly to MarkDownViewer folks, as Markdig is not responsible for rendering Latex. The math extension in Markdig is only making sure that it will output blocks that can be recognized by a Latex/Math renderer.

@xoofx commented on GitHub (Mar 26, 2020): > Well I have to admit that I did not install markding. I installed the MarkDownViewer++ via the extension control panel in Notepad++ and expected that markding commands are ready to use. Do I have to make additional installations in order to get the Latex math interpreter running. You should ask this directly to MarkDownViewer folks, as Markdig is not responsible for rendering Latex. The math extension in Markdig is only making sure that it will output blocks that can be recognized by a Latex/Math renderer.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#356