From 5eb9425622a301e7cebd15741b59d16b1bbc3b8c Mon Sep 17 00:00:00 2001 From: Omar BENHAMID Date: Thu, 21 Nov 2019 10:08:20 +0100 Subject: [PATCH] Fixing issue #85 --- lib/rst-model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rst-model.js b/lib/rst-model.js index 491d4fd..f18d876 100644 --- a/lib/rst-model.js +++ b/lib/rst-model.js @@ -1,6 +1,6 @@ const {AbstractModel} = require('./abstract-model'); -const HEADING_REGEX = /^(.+)\n([!-/:-@[-`{-~])\2+$/gm; +const HEADING_REGEX = /^(.+)\r?\n([!-/:-@[-`{-~])\2+$/gm; class ReStructuredTextModel extends AbstractModel { constructor(editorOrBuffer) {