Skip to content

Commit

Permalink
feat: one-letter expression in math syntax (display)
Browse files Browse the repository at this point in the history
Co-authored-by: Shinyu Murakami <murakami@vivliostyle.com>
  • Loading branch information
akabekobeko and MurakamiShinyu committed Apr 24, 2021
1 parent 26e4cb8 commit 13f195a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/math.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import visit from 'unist-util-visit';
const regexpInline = /\$([^$\s].*?(?<=[^\\$\s]|[^\\](?:\\\\)+))\$(?!\$|\d)/gs;

/** Display math format, e.g. `$$...$$`. */
const regexpDisplay = /\$\$([^$].*?[^$])\$\$(?!\$)/gs;
const regexpDisplay = /\$\$([^$].*?(?<=[^$]))\$\$(?!\$)/gs;

/** Type of inline math in Markdown AST. */
const typeInline = 'inlineMath';
Expand Down

0 comments on commit 13f195a

Please sign in to comment.