From edb8f294e3b090ae1cacb5371cf5e2d3a3cd4fc9 Mon Sep 17 00:00:00 2001 From: Rubaiyat Khondaker Date: Sun, 13 Dec 2020 11:37:29 +0000 Subject: [PATCH] Hotfix - fixed highlight replace regexp --- src/format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format.ts b/src/format.ts index 4b7c7038..affdd8fc 100644 --- a/src/format.ts +++ b/src/format.ts @@ -7,7 +7,7 @@ import * as c from './constants' import showdownHighlight from 'showdown-highlight' const ANKI_MATH_REGEXP:RegExp = /(\\\[[\s\S]*?\\\])|(\\\([\s\S]*?\\\))/g -const HIGHLIGHT_REGEXP:RegExp = /==(.*)==/g +const HIGHLIGHT_REGEXP:RegExp = /==(.*?)==/g const MATH_REPLACE:string = "OBSTOANKIMATH" const INLINE_CODE_REPLACE:string = "OBSTOANKICODEINLINE"