@arsedizioni/ars-utils 21.2.362 → 21.2.365
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/fesm2022/arsedizioni-ars-utils-core.mjs +4 -0
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +18 -18
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +8 -8
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1 -1
|
@@ -391,6 +391,10 @@ class SystemUtils {
|
|
|
391
391
|
});
|
|
392
392
|
// 2b. Inline code
|
|
393
393
|
html = html.replace(/`([^`]+)`/g, (_match, code) => stash(`<code>${code}</code>`));
|
|
394
|
+
// 2c. Ensure a space between two letters separated by sentence punctuation
|
|
395
|
+
// (! or ?), e.g. "dettaglio!Ecco" becomes "dettaglio! Ecco".
|
|
396
|
+
// Period, comma, colon and semicolon are ignored.
|
|
397
|
+
html = html.replace(/([A-Za-zÀ-ÿ][!?])([A-Za-zÀ-ÿ])/g, '$1 $2');
|
|
394
398
|
// 3. Headers
|
|
395
399
|
html = html.replace(/^##### (.*$)/gim, '<h5>$1</h5>');
|
|
396
400
|
html = html.replace(/^#### (.*$)/gim, '<h4>$1</h4>');
|