@kontakto/email-template-editor 2.2.1 → 2.2.2
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.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -141,6 +141,13 @@ ${body}</tbody>
|
|
|
141
141
|
}
|
|
142
142
|
return `<a href="${href}" title="${title}" target="_blank">${text}</a>`;
|
|
143
143
|
}
|
|
144
|
+
// Give paragraphs an explicit bottom margin that matches a blank line in the
|
|
145
|
+
// raw source. Without this, click-to-edit swaps the rendered div (flattened
|
|
146
|
+
// by ambient CSS) for a textarea whose blank lines take a full line-height,
|
|
147
|
+
// causing a visible layout jump.
|
|
148
|
+
paragraph(text) {
|
|
149
|
+
return `<p style="margin:0 0 1em 0">${text}</p>`;
|
|
150
|
+
}
|
|
144
151
|
};
|
|
145
152
|
function renderMarkdownString(str) {
|
|
146
153
|
const html2 = marked.parse(str, {
|