chore: Cleaner Markdown output when exporting docs
This commit is contained in:
@ -1,7 +1,9 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
const unescape = (text: string) => {
|
const unescape = (text: string) => {
|
||||||
return text.replace(/\\([\\`*{}[\]()#+\-.!_>])/g, '$1');
|
return text
|
||||||
|
.replace(/\\([\\`*{}[\]()#+\-.!_>])/g, '$1')
|
||||||
|
.replace(/\n\\\n/g, '\n\n');
|
||||||
};
|
};
|
||||||
|
|
||||||
export default unescape;
|
export default unescape;
|
||||||
|
Reference in New Issue
Block a user