Skip to content

Commit

Permalink
fix: use LF for new lines
Browse files Browse the repository at this point in the history
close #41
  • Loading branch information
gera2ld committed Feb 7, 2023
1 parent 9f82239 commit 09e5d92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ class MarkmapEditor implements CustomTextEditorProvider {
},
});
if (!targetUri) return;
const md = document.getText();
let md = document.getText();
md = md.replace(/\r\n?/g, '\n');
const { root, features, frontmatter } = transformer.transform(md);
const jsonOptions = {
...defaultOptions,
Expand Down

0 comments on commit 09e5d92

Please sign in to comment.