hexojs / hexojs/hexo-renderer-markdown-it
Conflict when markdown-it-sup and markdown-it-mathjax plugin enabled
- Dominant language
- JavaScript
- Stars
- 369
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
Eg. markdown text: `$\forall i \ge 0, uv^iwx^iy \in L $`
And the rendered result is:

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: ''
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.