Comments (7)
Intended. Math works like code.
``inline``
```
block
```
$$inline$$
$$
block
$$
from markdown-rs.
There's some website that render $$something$$
as block math, like GitHub or Stack Exchange. I hope there's an option or something to do so.
from markdown-rs.
The problem is that math is unspecified. If I do something here, it won't ever work like all other projects. The solution is to get this specified!
from markdown-rs.
maybe add this inside ParseOptions
with force enabling math_text_single_dollar
. That way, double dollar is always threated as block math while single dollar will be treated as inline. I think most markdown math is rendered that way (at least for those I familiar with).
from markdown-rs.
maybe add this inside
add what? what is this
?
You asked about matching how GH works and matching how Stack Exchange work.
Thatโs two complex things that are unspecified and take a lot of time, with little benefit.
To reiterate, I think: โThe solution is to get [math in markdown] specified!โ
from markdown-rs.
I think math in markdown is double dollar for block math and single dollar for inline in most cases, regardless of newline
from markdown-rs.
There is no specification for that. Every tool is different.
This is based on CM and is exactly the same as the sister projects in JS.
from markdown-rs.
Related Issues (20)
- Add serde annotations for configuration HOT 3
- MDAST: serde Serialization/Deserialization not working HOT 2
- Implement file_to_html HOT 3
- Automatically add IDs to headings HOT 6
- Markdown in HTML tags don't work HOT 2
- GFM with allow_dangerous_html panics when a tag contains a newline after its name HOT 4
- Markdown in beginning of a row in a Table with no outer pipes HOT 1
- GFM strikethrough causes nested attention sequences to be considered just text data HOT 3
- Option to only produce tags for explicit markdown HOT 2
- Inlines in Image HOT 3
- Stronger types HOT 5
- Allow both gfm (for tables) and allow embedding HTML with allow_dangerous_html HOT 1
- Field-variants rather than tuple-variants for Block, Span HOT 1
- log spamming
- API for creating extensions? HOT 1
- How to get math working HOT 4
- Get marker delimitation HOT 4
- to_html_with_options isn't found HOT 3
- Whitelist anchor HTML tags? HOT 8
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 markdown-rs.