docsify-katex icon indicating copy to clipboard operation
docsify-katex copied to clipboard

Bug report - some LaTex cannt render correctly.

Open xhqing opened this issue 3 years ago • 2 comments

Describe the bug Some LaTex can not render correctly. See https://xhqing.github.io/blog/#/post/%E6%A8%A1%E5%BC%8F%E8%AF%86%E5%88%AB%E4%B8%8E%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/%E4%B8%BB%E6%88%90%E5%88%86%E5%88%86%E6%9E%90%E5%8E%9F%E7%90%86%E8%AF%A6%E8%A7%A3

Mardown file at: https://github.com/xhqing/blog/blob/main/docs/post/%E6%A8%A1%E5%BC%8F%E8%AF%86%E5%88%AB%E4%B8%8E%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/%E4%B8%BB%E6%88%90%E5%88%86%E5%88%86%E6%9E%90%E5%8E%9F%E7%90%86%E8%AF%A6%E8%A7%A3.md

These can render correctly in Typora, Feichu Wiki and Yuque docs.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://github.com/xhqing/blog
  2. git clone https://github.com/xhqing/blog.git
  3. cd blog and then docsify serve docs

Expected behavior A clear and concise description of what you expected to happen. Render correctly

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS, Darwin Macs-Mac-mini.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64
  • Browser version: Version 105.0.5195.52 (Official Build) (x86_64)
  • docsify version: docsify-cli version: 4.4.4
  • docsify-katex version: latest

Additional context Add any other context about the problem here.

xhqing avatar Oct 17 '22 04:10 xhqing

Could you please provide a minimal reproduce?

upupming avatar Oct 17 '22 04:10 upupming

ok. minimal reproduce repo: https://github.com/xhqing/reproduce-blog

Bug Page: https://xhqing.github.io/reproduce-blog/#/post/%E6%A8%A1%E5%BC%8F%E8%AF%86%E5%88%AB%E4%B8%8E%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/%E4%B8%BB%E6%88%90%E5%88%86%E5%88%86%E6%9E%90%E5%8E%9F%E7%90%86%E8%AF%A6%E8%A7%A3

Bug file: https://github.com/xhqing/reproduce-blog/blob/main/docs/post/%E6%A8%A1%E5%BC%8F%E8%AF%86%E5%88%AB%E4%B8%8E%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/%E4%B8%BB%E6%88%90%E5%88%86%E5%88%86%E6%9E%90%E5%8E%9F%E7%90%86%E8%AF%A6%E8%A7%A3.md

xhqing avatar Oct 19 '22 04:10 xhqing

Let me try 😁

dzylikecode avatar Oct 23 '22 04:10 dzylikecode

origin markdown

image

delete the unnecessary blank line

image

Now, it works well

dzylikecode avatar Oct 23 '22 04:10 dzylikecode

origin markdown

image

delete the unnecessary blank line

image

Now, it works well

Thank you so much.

xhqing avatar Oct 24 '22 05:10 xhqing