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) {