mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-16 13:44:31 +02:00
more zh-CN and a fix for a really bad markdown conversion bug it highlighted
This commit is contained in:
@@ -12,12 +12,12 @@ var options = {
|
||||
var replaced = pre
|
||||
.replace(options.start,'')
|
||||
.replace(options.end,'')
|
||||
.replace(/&/g,'&')
|
||||
.replace(/</g,'<')
|
||||
.replace(/>/g,'>')
|
||||
.replace(/([{}])/g,"{'$1'}")
|
||||
.replace(/\n/g,"{'\\n'}");
|
||||
return options.start + replaced + options.end;
|
||||
// ...sigh...
|
||||
.replace(/&/g,'&')
|
||||
.replace(/</g,'<')
|
||||
.replace(/>/g,'>')
|
||||
// generate a template literal, so JSX doesn't fuck with.
|
||||
return options.start + '{`' + replaced + '`}' + options.end;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user