Change setting so that decomment library preserves spaces (#411)
* Change setting so that decomment preserves spaces * Fix trailing spaces
This commit is contained in:
parent
fcb89e2c2b
commit
1897ccdef2
1 changed files with 4 additions and 1 deletions
|
@ -280,7 +280,10 @@ class PreviewFrame extends React.Component {
|
|||
}
|
||||
}
|
||||
});
|
||||
newContent = decomment(newContent, { ignore: /noprotect/g });
|
||||
newContent = decomment(newContent, {
|
||||
ignore: /noprotect/g,
|
||||
space: true
|
||||
});
|
||||
newContent = loopProtect(newContent);
|
||||
return newContent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue