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

Conflict when markdown-it-sup and markdown-it-mathjax plugin enabled #124

Open
jtchen2k opened this issue Sep 3, 2020 · 0 comments
Open

Comments

@jtchen2k
Copy link

jtchen2k commented Sep 3, 2020

Eg. markdown text: $\forall i \ge 0, uv^iwx^iy \in L $

And the rendered result is:

image

The symbol ^ in latex and symbol ^ in markdown will affect each other and equations won't be rendered properly. Can this be solved?

This is my markdown-it config file in hexo:


markdown:
  render:
    html: true
    xhtmlOut: false
    breaks: true
    linkify: true
    typographer: false
    quotes: '“”‘’'
  plugins:
    - markdown-it-abbr
    - markdown-it-footnote
    - markdown-it-ins
    # - markdown-it-sub
    # - markdown-it-sup
    - markdown-it-deflist
    - markdown-it-imsize
    - markdown-it-mark
    - markdown-it-regexp
    - markdown-it-mathjax
    - markdown-it-task-checkbox
    - name: markdown-it-emoji
      options:
        shortcuts: {}
  anchors:
    level: 2
    collisionSuffix: 'v'
    permalink: true
    permalinkClass: header-anchor
    permalinkSymbol: ''
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

1 participant