@scrider/formatter 1.4.0 → 1.4.1
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2615,10 +2615,13 @@ function resolveDocumentPresentation(presentation) {
|
|
|
2615
2615
|
return { lineSpacing, textIndentCm, listBlockIndentCm };
|
|
2616
2616
|
}
|
|
2617
2617
|
var LINE_HEIGHT_TAGS = /* @__PURE__ */ new Set(["p", "li", "blockquote"]);
|
|
2618
|
-
var TEXT_INDENT_TAGS = /* @__PURE__ */ new Set(["p"
|
|
2618
|
+
var TEXT_INDENT_TAGS = /* @__PURE__ */ new Set(["p"]);
|
|
2619
2619
|
function documentPresentationListWrapperStyleParts(resolved) {
|
|
2620
2620
|
if (!resolved?.listBlockIndentCm) return [];
|
|
2621
|
-
return [
|
|
2621
|
+
return [
|
|
2622
|
+
`padding-left:1.25em`,
|
|
2623
|
+
`margin-left:${resolved.listBlockIndentCm}cm`
|
|
2624
|
+
];
|
|
2622
2625
|
}
|
|
2623
2626
|
function documentPresentationStyleParts(tag, resolved) {
|
|
2624
2627
|
if (!resolved) return [];
|