hexojs / hexojs/hexo-renderer-markdown-it

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

Open
#124 0 comments 0 reactions 0 assignees View on GitHub
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:

![image](https://user-images.githubusercontent.com/11037722/92114924-37c34980-ee24-11ea-81c8-6d8763e59499.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.