kramed icon indicating copy to clipboard operation
kramed copied to clipboard

Error with latex $||^$

Open Vast-Stars opened this issue 6 years ago • 0 comments

I change default renderer to hexo-render-kramed and then change some render rules in node_modules\kramed\lib\rules\inline.js :

//  escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/,
  escape: /^\\([`*\[\]()#$+\-.!_>])/,

//  em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
  em: /^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,

and I found there is a error when rendering latex code ||x||^2. Is there any other way except using {||}^2 ?

Vast-Stars avatar Mar 16 '18 14:03 Vast-Stars