From 20b42ab60f617856f72ea051812fe556f7f96e00 Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 23 Feb 2023 12:55:23 +0100 Subject: [PATCH 1/2] add possesive --- lib/ExpensiMark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExpensiMark.js b/lib/ExpensiMark.js index b19f4de0..8b650bb7 100644 --- a/lib/ExpensiMark.js +++ b/lib/ExpensiMark.js @@ -164,7 +164,7 @@ export default class ExpensiMark { }, { name: 'heading1', - regex: /^#(?!#) +(.+)$\s*/gm, + regex: /^#(?!#) ++(.+)$\s*/gm, replacement: '

$1

', }, { From 89104f0c5ff0583567a779b3712b0f13b6f8a9a1 Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 23 Feb 2023 12:58:55 +0100 Subject: [PATCH 2/2] JS does not have possesive stuff :sad: --- lib/ExpensiMark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExpensiMark.js b/lib/ExpensiMark.js index 8b650bb7..4e3b932d 100644 --- a/lib/ExpensiMark.js +++ b/lib/ExpensiMark.js @@ -164,7 +164,7 @@ export default class ExpensiMark { }, { name: 'heading1', - regex: /^#(?!#) ++(.+)$\s*/gm, + regex: /^#(?!#) +(?! )(.+)$\s*/gm, replacement: '

$1

', }, {