kramed
kramed copied to clipboard
Error with latex $||^$
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
?