-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ondřej Žára edited this page May 2, 2020
·
1 revision
This wiki documents all relevant features of the maslo presentation system.
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>My presentation</title>
</head>
<body>
<template data-src="content.md" data-skin="light"></template>
<script src="https://cdn.jsdelivr.net/npm/ma-sl-o@2/maslo.js"></script>
</body>
</html>
-
Markdown content:
- either in a separate markdown file (recommended) and referenced using
data-src
attribute, or - inlined into the
<template>
element
- either in a separate markdown file (recommended) and referenced using
-
JS library (
maslo.js
):- either installed locally via
npm install ma-sl-o
, or - linked via jsdelivr.net
- specify version using
@major.minor.patch
,@major
or@latest
- specify version using
- either installed locally via
-
Skin:
- either specify via
data-skin
attribute (available:"dark"
,"light"
,"default"
), or - set
data-skin=""
and provide your own css
- either specify via
- Inline HTML
- Syntax highlighting for fenced code blocks
- HTML attributes (append
{#id .class name=value}
after your markdown elements) - Full reference
-
--width
: projection resolution width (unitless) -
--height
: projection resolution height (unitless) -
--scale
: current scale (computed) -
--current
: current slide index (computed) -
--total
: slide count (computed) -
--tab-size
: tab size -
--brush
: doodle brush thickness (unitless) -
--highlight
: doodle color -
--overview-scale
: size scale for overview mode (fraction) -
--overview-border
: border size for overview mode (length) -
--fg
: default foreground color -
--bg
: default background color -
--link
: default link color -
--marker
: symbol used for<ul>
markers -
--marker-width
: width for<ul>
/<ol>
markers -
--marker-opacity
: opacity for<ul>
/<ol>
markers
See https://github.com/ondras/maslo/blob/master/css/variables.less for default values.
-
Space
,PageDown
,→
,↓
– next slide -
Backspace
,PageUp
,←
,↑
– previous slide -
Home
– first slide -
End
– last slide -
Escape
– toggle overview -
Caps Lock
- toggle doodling