Markdown Slides [EN]

Adolfo Sanz De Diego

@asanzdiego

About

What is it?

Samples

Samples

Contributors

Licence

Instalation

Dependencies

Requirements

Download

https://github.com/asanzdiego/markdownslides/releases

Docker

Building docker image

$ docker build -t asanzdiego/markdownslides .

Launch the container

docker run -it -v "${PWD}":/home/markdownslides-master/"${PWD##*/}" \
    asanzdiego/markdownslides ./build.sh [clean] [mode] [folder]

How to use

Creation

Imports

Firt example:

 @import import/import-2.md

Second example:

 @import import/import-1.md endLine=4

Third example:

 @import import/import-1.md startLine=6
- Line 1 of import-2.md
- Line 2 of import-2.md
- Line 3 of import-2.md
- Line 4 of import-2.md

Fourth example:

 @import import/import-1.md startLine=2 endLine=3 showNumberLines
2 - Line 2 of import-1.md
3 - Line 3 of import-1.md

Notes

 @start-notes
 This is only visible in book mode or if you press 's' on the slides.
 @end-notes

Plus notes

 @plus the lines below will only be available in the plus version

 @plus @import import/import-2.md

MathJax

So this:

$$x = {-b \pm \sqrt{b^2-4ac}}.$$

Will be converted to:

\[x = {-b \pm \sqrt{b^2-4ac}}.\]

Code

function helloWorld() {
    alert('Hello world');
}

Levels

# Level 1 (on slides and book)

## Level 2 (on slides and book)

### Level 3 (in book but stays level 2 in slides)

But only in books. In slides you can only have 2 levels.

Numbering

 ## Foo Bar

 ## Foo Bar (II)

In the book will be:

 ## Foo Bar

Configuration

We can configure the files that we want to generate from the file build.properties

DEFAULT_GENERATION_MODE='min'
GENERATE_PLUS_VERSION='yes'
DEFAULT_BUILD='REVEAL_SLIDES_PDF'

BUILD_REVEAL_SLIDES='min'
BUILD_REVEAL_SLIDES_PDF='med'

BUILD_HTML_BOOK='min'
BUILD_PDF_BOOK='med'
BUILD_DOCX_BOOK='max'
BUILD_EPUB_BOOK='max'

We can also configure some other stufs from the file build.properties

CLEAN_LIB_FOLDER='no'
COPY_IMG_FOLDER='no'
ZIP_EXPORT_FOLDER='no'
NUMBER_SECTIONS='no'
NUMBER_OFFSET='no'
CURRENT_NUMBER_OFFSET=1
REMOVE_GENERATE_MD_FILES='yes'

We can also configure some other stufs aboout reveal.js from the file build.properties

#THEME='black|white|league|sky|beige|simple|serif|blood|night|moon|solarized'
REVEAL_JS_THEME='beige'
REVEAL_JS_SHOW_TITLE_FOOTER='yes'
REVEAL_JS_DEFAULT_TITLE_FOOTER='yes'
REVEAL_JS_TITLE_FOOTER="'MarkdownSlides by @asanzdiego :-)'"
REVEAL_JS_SHOW_MENU='yes'
REVEAL_JS_SHOW_CHALKBOARD='yes'
REVEAL_JS_ONLINE='no'

Build

./build.sh [mode] [folder]

Releases notes

Release 1.0

Release 2.0

Release 3.0

Release 4.0

Release 5.0

Release 6.0

Release 6.*

Adolfo Sanz De Diego Author

Adolfo Sanz De Diego

Some projects

Where to find me?