Closed hexh250786313 closed 2 years ago
@weirongxu I found coc throws error when not only use word 键
but any chinese word or Emoji between two $
. Like $😈 小恶魔$
. It means that it just can not translate some unicode characters between $
.
Change your katex configuration via:
:CocCommand markdown-preview-enhanced.openKaTeXConfig
katex_config.js
module.exports = {
strict: false,
...
}
@weirongxu THX!
By the way, anyone can use \$your words\$
to show the $
symbol when you have a format like $your words$
. By default, the plugin would trans the words between $
to latex format which makes $
symbol hidden.
Description
Coc.nvim throws error when the markdown file exists string
$键$
in hosting coc-markdown-preview-enhanced. It seems be relative to LaTeX's keyword. Error messages like this:Actually my words are
$mod 键和 $sup 键
and$键$
is the shortest string to reproduce.Reproduce
$键$
:CocCommand markdown-preview-enhanced.openPreview
CocInfo