Comments (4)
Thank you very much
from zero-md.
Hi, do you have an example or a reproduction of what you wish to do?
from zero-md.
Hmmm... example would be fine.
But here how i want to make it:
my-markdown.md looks like that:
##Hello World
part of my site:
How it looks:
No conversion at all even if i add special settings to math_jax script part which allow me to use $ $
from zero-md.
So.. say you have a markdown file:
my-markdown.md
:
## Hello World
$a_2 + b^2 = d^e $
and you have a HTML file:
index.html
:
<head>
<!-- Configure your MathJax settings here -->
<script>
MathJax = {
tex: {
inlineMath: [ ['$', '$'], ['\\(', '\\)'], ],
},
};
</script>
<!-- Load `zero-md` -->
<script async src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script>
</head>
<body>
<!-- Add the `no-shadow` attribute -->
<zero-md id="md" src="my-markdown.md" no-shadow></zero-md>
<!-- Load the MathJax library AFTER markdown is rendered -->
<script>
md.addEventListener('zero-md-rendered', () => {
let el = document.createElement('script');
el.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js';
document.head.appendChild(el);
});
</script>
</body>
Here's the working example: https://plnkr.co/edit/SdzWj39SOVpntGTn?open=lib%2Fscript.js
from zero-md.
Related Issues (20)
- Thanks a ton!
- Parsing img tags in md [ERROR with src] HOT 1
- fallback markdown script renders as code block HOT 1
- Marked.js v5 support HOT 2
- github markdown emoji HOT 3
- How to use zeroMd as module? HOT 3
- Cyrillic anchor links doesn't works HOT 2
- nginx example HOT 3
- BUG: `goto` (scroll to selected element) broken when `no-shadow` enabled HOT 2
- Discussion: Anchor.js usability (for on-hover anchor links) HOT 5
- Mathjax zero-md@{1,2} bug HOT 3
- Mathjax no-shadow window.ZeroMdConfig HOT 2
- Render Mathjax on content change HOT 2
- Is there a way to use mathjax while still supporting shadow dom? HOT 2
- Does zero-md support admonition marked plug-in? HOT 7
- Parse/Render text within HTML tags HOT 2
- prism.js seems to not recognize C++? HOT 3
- Mermaid Support Broken Since Version 2.5.1 HOT 3
- Display table of content TOC HOT 4
- Markdown not translated into HTML HOT 2
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 zero-md.