Struct reveal_yaml::project::Slide
source · pub struct Slide {
pub title: String,
pub title_hidden: String,
pub title_only: String,
pub content: Content,
pub note: String,
pub background: Optional<Background>,
pub class: String,
pub id: String,
pub attr: String,
pub auto_animate: bool,
pub trans: String,
pub bg_trans: String,
}
Expand description
All slides has following attributes.
Please see Slides
for more information.
Fields§
§title: String
Markdown level 1 title without #
notation.
Visible title but will be excluded in TOC.
title_only: String
Invisible title, doesn’t show but will be included in TOC.
content: Content
Slides have all attributes of “content“s. (flatten)
Content
type can be placed with different layouts.
note: String
Note in Speaker’s view, Markdown syntax.
background: Optional<Background>
Background setting, as same as global.
- Local background option can be boolean
false
to disable global background.
class: String
HTML “class” attribute for this section.
For example, “my-class” will become <section class="my-class">
.
id: String
HTML “id” attribute for this section.
For example, “my-id” will become <section id="my-id">
.
attr: String
HTML tag attributes, separated by space.
For example, “attr1 attr2 …” will become <section attr1 attr2 ...>
.
auto_animate: bool
Auto-Animate function.
trans: String
Transition option.
bg_trans: String
Background transition option.