marp-cue 0.1.1 → 0.2.0
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/README.md +8 -6
- package/marp.config.js +1 -0
- package/package.json +3 -3
- package/themes/teleprompter.css +8 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Autocue speaker notes using Markdown
|
|
2
2
|
|
|
3
|
-
So I seem to have written a markdown-teleprompter-slideshow thing
|
|
3
|
+
So I seem to have written a markdown-teleprompter-slideshow thing to scratch a personal itch.
|
|
4
|
+
|
|
5
|
+
This is for 'speaker notes' type scripts rather than verbatim scrolling autocue. Gojko Adzic has a [lovely browser tool](https://gojko.net/tools/teleprompter/) for that.
|
|
4
6
|
|
|
5
7
|
- H2 headings (`##`) separate slides
|
|
6
8
|
- Active bullet highlighted, the rest dim
|
|
@@ -17,8 +19,6 @@ Put the following frontmatter in your Markdown file:
|
|
|
17
19
|
```yaml
|
|
18
20
|
---
|
|
19
21
|
marp: true
|
|
20
|
-
headingDivider: 2
|
|
21
|
-
class: invert
|
|
22
22
|
---
|
|
23
23
|
```
|
|
24
24
|
|
|
@@ -28,6 +28,8 @@ Then run `marp-cue` from the directory like so:
|
|
|
28
28
|
% npx marp-cue your-notes.md # or npx marp-cue .
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
This will open a stripped-down browser window for your file, or for every Markdown file in the directory
|
|
31
|
+
This will open a stripped-down browser window ('preview mode') for your file, or for every Markdown file in the directory that has `marp: true`. You can place this window in your teleprompter screen and the current line will stay vertically aligned in the middle of the viewport.
|
|
32
|
+
|
|
33
|
+
Marp watches the file(s), so as soon as you save any changes, they show instantly without a refresh.
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
You can just generate the HTML file to run elsewhere by passing `--preview false`, which disables preview mode.
|
package/marp.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marp-cue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Teleprompter-style scrolling for Marp presentations",
|
|
5
5
|
"author": "Daniel Terhorst-North <daniel@dannorth.net>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://gitlab.com/tastapod/marp-cue.git"
|
|
16
|
+
"url": "git+https://gitlab.com/tastapod/marp-cue.git"
|
|
17
17
|
},
|
|
18
18
|
"type": "module",
|
|
19
19
|
"bin": {
|
|
20
|
-
"marp-cue": "
|
|
20
|
+
"marp-cue": "cli.js"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"cli.js",
|
package/themes/teleprompter.css
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@import 'uncover';
|
|
4
4
|
|
|
5
|
+
section {
|
|
6
|
+
background: #202228;
|
|
7
|
+
color: #fff;
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
/* Dim inactive lines */
|
|
6
11
|
li[data-bespoke-marp-fragment] {
|
|
7
12
|
|
|
@@ -13,15 +18,17 @@ li[data-bespoke-marp-fragment] {
|
|
|
13
18
|
color: white;
|
|
14
19
|
}
|
|
15
20
|
|
|
21
|
+
/* Make sub-bullets look different */
|
|
16
22
|
li[data-bespoke-marp-fragment] {
|
|
17
23
|
font-size: smaller;
|
|
24
|
+
|
|
18
25
|
&[data-bespoke-marp-current-fragment] {
|
|
19
26
|
color: cyan;
|
|
20
27
|
}
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
30
|
|
|
24
|
-
/* Add enough vertical space around the slide to centre the current line */
|
|
31
|
+
/* Add enough vertical space around the slide to always centre the current line */
|
|
25
32
|
section:has([data-bespoke-marp-fragment]) {
|
|
26
33
|
padding-block: 80vh;
|
|
27
34
|
}
|