themed-markdown 0.1.90 → 0.1.91
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.mjs
CHANGED
|
@@ -89,6 +89,27 @@ code.hljs {
|
|
|
89
89
|
isInjected = true;
|
|
90
90
|
}
|
|
91
91
|
injectHighlightStyles();
|
|
92
|
+
var isSlideResetInjected = false;
|
|
93
|
+
function injectSlideResetStyles() {
|
|
94
|
+
if (isSlideResetInjected || typeof document === "undefined")
|
|
95
|
+
return;
|
|
96
|
+
if (document.getElementById("themed-markdown-slide-reset-css")) {
|
|
97
|
+
isSlideResetInjected = true;
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const css = `
|
|
101
|
+
.markdown-slide > *:last-child,
|
|
102
|
+
.markdown-slide > *:last-child > *:last-child {
|
|
103
|
+
margin-bottom: 0 !important;
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
const styleElement = document.createElement("style");
|
|
107
|
+
styleElement.id = "themed-markdown-slide-reset-css";
|
|
108
|
+
styleElement.textContent = css;
|
|
109
|
+
document.head.appendChild(styleElement);
|
|
110
|
+
isSlideResetInjected = true;
|
|
111
|
+
}
|
|
112
|
+
injectSlideResetStyles();
|
|
92
113
|
|
|
93
114
|
// node_modules/@principal-ade/industry-theme/dist/esm/index.js
|
|
94
115
|
import React, { createContext, useContext, useState, useEffect } from "react";
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
export declare function injectHighlightStyles(): void;
|
|
2
|
+
/**
|
|
3
|
+
* Zero the bottom margin on the slide's last rendered child so the slide
|
|
4
|
+
* can be embedded in flow layouts without leaking the trailing paragraph
|
|
5
|
+
* (or list / heading) margin into outer spacing. Hosts that want a gap
|
|
6
|
+
* after the slide should provide it on their own container.
|
|
7
|
+
*
|
|
8
|
+
* Idempotent and SSR-safe.
|
|
9
|
+
*/
|
|
10
|
+
export declare function injectSlideResetStyles(): void;
|
|
2
11
|
//# sourceMappingURL=injectStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectStyles.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/utils/injectStyles.ts"],"names":[],"mappings":"AAKA,wBAAgB,qBAAqB,IAAI,IAAI,CA8F5C"}
|
|
1
|
+
{"version":3,"file":"injectStyles.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/utils/injectStyles.ts"],"names":[],"mappings":"AAKA,wBAAgB,qBAAqB,IAAI,IAAI,CA8F5C;AAOD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAoB7C"}
|