@berlysia/vertical-writing-slide-system 0.0.26 → 0.0.28
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/package.json +1 -1
- package/src/index.css +10 -0
- package/src/remark-slide-images.ts +1 -1
- package/src/vite-plugin-slides.ts +1 -1
package/package.json
CHANGED
package/src/index.css
CHANGED
|
@@ -57,6 +57,16 @@ code {
|
|
|
57
57
|
max-block-size: 100%;
|
|
58
58
|
max-inline-size: 100%;
|
|
59
59
|
overflow: hidden;
|
|
60
|
+
block-size: 100%;
|
|
61
|
+
inline-size: 100%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.header-and-content > *:not(:first-child) {
|
|
65
|
+
flex: 1;
|
|
66
|
+
@container style(--slide-writing-mode: horizontal-tb) or style(--slide-writing-mode: unset) {
|
|
67
|
+
min-block-size: 0;
|
|
68
|
+
overflow-block: auto;
|
|
69
|
+
}
|
|
60
70
|
}
|
|
61
71
|
|
|
62
72
|
h1 {
|
|
@@ -44,7 +44,7 @@ const remarkSlideImages: Plugin<[RemarkSlideImagesOptions], Root> = (
|
|
|
44
44
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
45
|
const htmlNode = node as any;
|
|
46
46
|
const value = htmlNode.value as string;
|
|
47
|
-
if (value.
|
|
47
|
+
if (value.includes("<img")) {
|
|
48
48
|
htmlNode.value = value.replace(
|
|
49
49
|
/<img\s+([^>]*src="(@slide\/[^"]+)"[^>]*)>/g,
|
|
50
50
|
(_, attributes, src) => {
|
|
@@ -423,7 +423,7 @@ export default async function slidesPlugin(
|
|
|
423
423
|
|
|
424
424
|
// Return as a module with CSS injection
|
|
425
425
|
return `
|
|
426
|
-
${slideComponentsFilenames.map((filename) => `import * as ${filenameToComponentName(filename)} from '
|
|
426
|
+
${slideComponentsFilenames.map((filename) => `import * as ${filenameToComponentName(filename)} from '${slideComponentsDir}/${filename}';`).join("\n")}
|
|
427
427
|
|
|
428
428
|
const SlideComponents = {${slideComponentsFilenames.map((filename) => `...${filenameToComponentName(filename)}`).join(", ")}};
|
|
429
429
|
|