acsi-core 0.9.15 → 0.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2125,6 +2125,7 @@ function formatContent(content) {
|
|
|
2125
2125
|
if (!content || content.trim() === "") {
|
|
2126
2126
|
return content;
|
|
2127
2127
|
}
|
|
2128
|
+
content = content.replace(/\\\(/g, "$$").replace(/\\\)/g, "$$").replace(/\\\[/g, "$$$$").replace(/\\\]\s*\./g, "$$$$").replace(/\\\]/g, "$$$$").replace(/<br\s*\/?>/g, "\n\n");
|
|
2128
2129
|
var processedContent = content.replace(/\s*\\\\\s*/g, "\n");
|
|
2129
2130
|
var lines = processedContent.split("\n");
|
|
2130
2131
|
var result = [];
|