@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berlysia/vertical-writing-slide-system",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "vertical-slides": "./cli.js"
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.startsWith("<img")) {
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 '@components/${filename}';`).join("\n")}
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