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

有计划支持 TSX 么? #53

Open
rxliuli opened this issue Feb 3, 2020 · 3 comments
Open

有计划支持 TSX 么? #53

rxliuli opened this issue Feb 3, 2020 · 3 comments

Comments

@rxliuli
Copy link

rxliuli commented Feb 3, 2020

在使用插件渲染 tsx 的代码时会出现问题

blinkfox/hexo-theme-matery#304

图解

image

发生问题的仓库: https://github.com/rxliuli/blog

配置项

highlight:
  enable: false
  line_number: true
  auto_detect: false
  tab_replace:

# 替换 hexo 默认的代码高亮
prism_plugin:
  mode: 'preprocess' # realtime/preprocess
  theme: 'tomorrow'
  line_number: true # default false
  custom_css:

不知道发生了什么,有什么解决方案么?
实测了一下,是因为不支持 tsx 的语法高亮时默认将之当成了普通的 markdown 中的 HTML(默认不应该当作文本么?)

image

@Zhou-Bill
Copy link

how to solve?

@rxliuli
Copy link
Author

rxliuli commented Jun 18, 2020

how to solve?

使用 jsx

```jsx
```

@Zhou-Bill
Copy link

how to solve?

使用 jsx

谢了

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

2 participants