Skip to content

Commit

Permalink
Fix inline math of length 1 not recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
valentjn committed Jan 29, 2021
1 parent 8eab37d commit be73e7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

public class LtexMarkdownInlineMathParser implements InlineParserExtension {
private static final Pattern MATH_PATTERN = Pattern.compile(
"\\$([^ ](?:.|\n)*?[^ ])(?<!\\\\)\\$(?![0-9])");
"\\$([^ ](?:.|\n)*?[^ ]|[^ ])(?<!\\\\)\\$(?![0-9])");

public LtexMarkdownInlineMathParser(LightInlineParser inlineParser) {
}
Expand Down

0 comments on commit be73e7e

Please sign in to comment.