Skip to content

Feature request:编辑模式中,LaTeX数学公式高亮显示 Syntax Highlight for LaTeX math expressions in editor mode #2658

Description

@mole-k

Is your feature request related to a problem? Please describe.
在编辑模式下,行内数学公式、数学公式块都显示为一个颜色,虽然易于与markdown的其他结构区分,但没有语法高亮(如下图,全是绿色的部分),不方便编辑和阅读公式代码。

VNote公式

Describe the solution you'd like
在编辑模式下,能否让行内数学公式、数学公式块支持对LaTeX语法的高亮,就像把它们写在代码块里那样高亮(如上图,有语法高亮的部分)。类似于VSCode里的实现(如下图)。

VSCode公式

Describe alternatives you've considered
我试过先在```latex……```的代码块里编辑数学公式,为了利用它对语法的高亮,在编辑好公式后,再去掉代码块的分隔符,使其从代码块变为公式,但这有些麻烦;而且在代码块里编辑公式的话,虽然有了语法高亮、但是又没法用VNote对于数学公式的原地预览,顾此失彼。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions