Skip to content

Error with latex $||^$ #46

@Vast-Stars

Description

@Vast-Stars

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions