Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX with inline: $ and block: $$ #1201

Closed
Paalon opened this issue Nov 28, 2017 · 5 comments
Closed

LaTeX with inline: $ and block: $$ #1201

Paalon opened this issue Nov 28, 2017 · 5 comments

Comments

@Paalon
Copy link
Contributor

Paalon commented Nov 28, 2017

Many markdown editors support LaTeX with inline: $ and block: $$ but Boostnote seems to support inline: $$ and block: $$$ only. I think we need to support inline: $ and block: $$ support for LaTeX.

@Paalon
Copy link
Contributor Author

Paalon commented Dec 1, 2017

I don't know which is preferred {inline: $$, block: $$$} or {inline: $, block: $$}, but anyway it seems both syntax is widely used. So we should add preferences to set LaTeX delimiters.

@Paalon
Copy link
Contributor Author

Paalon commented Dec 1, 2017

@rokt33r/markdown-it-math's default setting is

var options = {
    inlineOpen: '$$',
    inlineClose: '$$',
    blockOpen: '$$$',
    blockClose: '$$$',
    renderingOptions: {},
    inlineRenderer: require('ascii2mathml')(this.rendererOptions),
    blockRenderer: require('ascii2mathml')(Object.assign({ display: 'block' },
                                                         this.renderingOptions))
}

so we can change them by only switching '$$' <-> '$' and '$$$' <-> '$$',

@Paalon
Copy link
Contributor Author

Paalon commented Dec 5, 2017

#1221 will solve this.

@Paalon Paalon closed this as completed Dec 5, 2017
@kazup01
Copy link
Member

kazup01 commented Dec 6, 2017

Thanks @Paalon ;)

@RoyiAvital
Copy link

Does the current version supports Math using MathJax?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants