Comments (13)
Be sure to have ...
- version 2.7.4 installed
- closed and opened VSCode again after having changed settings.
For me
Vectors in $\RR^2$ have a shape of
$$\vek{x}{y}$$
btw: KaTeX now supports \R
natively, so macro \RR
makes sense only for demonstration reasons.
from mdmath.
Simply does not work for me, on two different computers too. Maybe it's an interaction with one of my installed extensions?
```math
\RR
```
$\RR$
$$
\RR
$$
Produces
settings.json
section:
"mdmath.delimiters": "gitlab",
"mdmath.macros":{
"\\RR":"\\mathbb{R}",
"\\vek": "{\\begin{pmatrix}#1\\\\#2\\end{pmatrix}}",
"\\test":"2+2"
},
from mdmath.
hmm ... please deactivate all markdown related extensions ... temporarily ...
from mdmath.
Interesting, it's one of the extensions. Working on figuring out which one right now.
```math
\RR
```
$\RR$
$$
\RR
$$
Not sure why
from mdmath.
It's the Markdown All In One extension.
Ugh I bet it's this, right in the Readme:
Please use Markdown+Math for dedicated math support. Be sure to disable math.enabled option of this extension.
from mdmath.
Fixed.
Code:
```math
\RR \\
\vek{x}{y} \\
\test \\
```
Settings:
"markdown.extension.math.enabled": false, //<- This fixes the macro issue
"mdmath.delimiters": "gitlab",
"mdmath.macros":{
"\\RR":"\\mathbb{R}",
"\\vek": "{\\begin{pmatrix}#1\\\\#2\\end{pmatrix}}",
"\\test":"2+2"
},
Sorry for the trouble! Can close this, I think.
from mdmath.
Thanks for successfully investigating this. Can you please do me a favor and raise an analog issue regarding macro collision there, while referencing your reproducable steps here ... thanks.
from mdmath.
I'd be happy to do that, but I'm not exactly clear on what you mean? Could you clarify more precisely what you'd like me to do?
from mdmath.
don't worry ... I did it by myself ... thanks again.
from mdmath.
don't worry ... I did it by myself ... thanks again.
I have another problem, but I wanted to ask you about it before opening a whole issue. Is there any way to get latex macros to render with the markdown file uploaded to gitlab/github? I'm getting the error "There was an error rendering this math block," I assume because gitlab doesn't know how to interpret the macros without them being defined anywhere. Not sure how to resolve this, or if it's even possible?
from mdmath.
hmm ... macros are resolved in VSCode Markdown via mdmath via markdown-it-texmath via KaTeX. GitLab should have a completely different math engine. If that doesn't support macros, you are lost. GitHub doesn't have a math engine at all.
The only way I know is working, is to export HTML from mdmath to GitHub pages or something similar with GitLab.
from mdmath.
hmm ... macros are resolved in VSCode Markdown via mdmath via markdown-it-texmath via KaTeX. GitLab should have a completely different math engine. If that doesn't support macros, you are lost. GitHub doesn't have a math engine at all.
The only way I know is working, is to export HTML from mdmath to GitHub pages or something similar with GitLab.
That's what I figured. How do you get github to render html (I looked into it a bit online but I'm wondering what your approach is)?
from mdmath.
Related Issues (20)
- Inline mode is not working with vs code 1.54 HOT 4
- When I save MD document to HTML document, the `code block language highlighting` function doesn't work properly. HOT 1
- Math commands not supported, don't know why HOT 3
- Multiline queations with utf-8 characters ahead does not render correcly. HOT 1
- Commutative diagrams are not supported HOT 1
- Issue with custom macros HOT 1
- Conflict with microJam HOT 1
- how to auto-number and quote math formula? HOT 6
- Please persist macros with KaTeX globalGroup HOT 2
- Font size
- Nonumber (disable per-equation) line numbering in align environment not recognised.
- Inline math incorrectly treated as display math in kramdown delimiter mode
- Support doxygen-style math delimiters HOT 5
- Default mdmath style should not impact "normal" markdown preview HOT 1
- The syntax highlighter gets confused after braces in subscript HOT 2
- Help? I have error command \sqrt
- The extension affects the normal markdown preview
- Read macros from local .md file
- HTML title in md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdmath.