Skip to content

Commit

Permalink
Fix alert spacing too.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturolinares committed Jul 30, 2021
1 parent 43b8895 commit a21aab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/LocalEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class LocalEditor extends React.Component {

updateMarkdown() {
let markdown = this.state.note.content.text
.replace(/(\n{2})(\n+)(?!---)/g, (m, p, q) => p + q.replace(/(\n)/g, '\\$1'));
.replace(/(\n{2})(\n+)(?!:::)(?!---)/g, (m, p, q) => p + q.replace(/(\n)/g, '\\$1'));
if (markdown === "") {
markdown = "\n";
}
Expand Down

0 comments on commit a21aab9

Please sign in to comment.