expensify-common 2.0.41 → 2.0.42
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/ExpensiMark.js +2 -2
- package/package.json +1 -1
package/dist/ExpensiMark.js
CHANGED
|
@@ -894,8 +894,8 @@ class ExpensiMark {
|
|
|
894
894
|
if (text.trim().length === 0 && !text.match(/\n/)) {
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
897
|
-
// Insert '\n' unless it ends with '\n' or '>' or it's the last element.
|
|
898
|
-
if (text.match(/[\n|>][>]?[\s]?$/) || index === splitText.length - 1) {
|
|
897
|
+
// Insert '\n' unless it ends with '\n' or '>' or it's the last element, or if it's a header ('# ') with a space.
|
|
898
|
+
if (text.match(/[\n|>][>]?[\s]?$/) || index === splitText.length - 1 || text === '# ') {
|
|
899
899
|
joinedText += text;
|
|
900
900
|
}
|
|
901
901
|
else {
|