Skip to content

Remark-math $$ content on single-line is being considered inline math #1056

Answered by wooorm
pjkaufman asked this question in Q&A
Discussion options

You must be logged in to vote

Math has no spec. Nobody knows what should happen. Not everyone agrees that what you want, is the way it should happen.

Particularly, in our case, we follow how code works in markdown, with two exceptions:

  • dollars instead of backticks
  • 2 is also fine for blocks
    Code works like this:
```inline code```

```
block code
```

For more information on how syntax works in our syntax plugins, see the Syntax section in each readme.
In this case: https://github.com/remarkjs/remark-math/tree/main/packages/remark-math#syntax

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@pjkaufman
Comment options

@wooorm
Comment options

@pjkaufman
Comment options

@Abban-Fahim
Comment options

@wooorm
Comment options

Answer selected by pjkaufman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants