@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.cjs
CHANGED
|
@@ -151,6 +151,13 @@ ${body}</tbody>
|
|
|
151
151
|
}
|
|
152
152
|
return `<a href="${href}" title="${title}" target="_blank">${text}</a>`;
|
|
153
153
|
}
|
|
154
|
+
// Give paragraphs an explicit bottom margin that matches a blank line in the
|
|
155
|
+
// raw source. Without this, click-to-edit swaps the rendered div (flattened
|
|
156
|
+
// by ambient CSS) for a textarea whose blank lines take a full line-height,
|
|
157
|
+
// causing a visible layout jump.
|
|
158
|
+
paragraph(text) {
|
|
159
|
+
return `<p style="margin:0 0 1em 0">${text}</p>`;
|
|
160
|
+
}
|
|
154
161
|
};
|
|
155
162
|
function renderMarkdownString(str) {
|
|
156
163
|
const html2 = marked.marked.parse(str, {
|