|
@@ -1,4 +1,4 @@
|
|
|
-import { Marp } from '@marp-team/marp-core';
|
|
|
|
|
|
|
+import { Marp, MarpOptions } from '@marp-team/marp-core';
|
|
|
import { Element } from '@marp-team/marpit';
|
|
import { Element } from '@marp-team/marpit';
|
|
|
|
|
|
|
|
export const MARP_CONTAINER_CLASS_NAME = 'marpit';
|
|
export const MARP_CONTAINER_CLASS_NAME = 'marpit';
|
|
@@ -36,28 +36,26 @@ const lineNumber = (md) => {
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-export const slideMarpit = new Marp({
|
|
|
|
|
|
|
+const marpitOption: MarpOptions = {
|
|
|
container: [
|
|
container: [
|
|
|
new Element('div', { class: `slides ${MARP_CONTAINER_CLASS_NAME}` }),
|
|
new Element('div', { class: `slides ${MARP_CONTAINER_CLASS_NAME}` }),
|
|
|
],
|
|
],
|
|
|
- slideContainer: [
|
|
|
|
|
- new Element('section', { class: 'shadow rounded m-2' }),
|
|
|
|
|
- ],
|
|
|
|
|
inlineSVG: true,
|
|
inlineSVG: true,
|
|
|
emoji: undefined,
|
|
emoji: undefined,
|
|
|
html: false,
|
|
html: false,
|
|
|
math: false,
|
|
math: false,
|
|
|
-}).use(lineNumber);
|
|
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
-export const presentationMarpit = new Marp({
|
|
|
|
|
- container: [
|
|
|
|
|
- new Element('div', { class: `slides ${MARP_CONTAINER_CLASS_NAME}` }),
|
|
|
|
|
- ],
|
|
|
|
|
- slideContainer: [
|
|
|
|
|
- new Element('section', { class: 'm-2' }),
|
|
|
|
|
- ],
|
|
|
|
|
- inlineSVG: true,
|
|
|
|
|
- emoji: undefined,
|
|
|
|
|
- html: false,
|
|
|
|
|
- math: false,
|
|
|
|
|
-});
|
|
|
|
|
|
|
+const slideMarpitOption = marpitOption;
|
|
|
|
|
+slideMarpitOption.slideContainer = (
|
|
|
|
|
+ [new Element('section', { class: 'shadow rounded m-2' })]
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+export const slideMarpit = new Marp(slideMarpitOption).use(lineNumber);
|
|
|
|
|
+
|
|
|
|
|
+const presentationMarpitOption = marpitOption;
|
|
|
|
|
+presentationMarpitOption.slideContainer = (
|
|
|
|
|
+ [new Element('section', { class: 'm-2' })]
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+export const presentationMarpit = new Marp(presentationMarpitOption);
|