Giter VIP home page Giter VIP logo

remark_demo's Introduction

Remarkjs

A little demo I made to show what's possible with remark, a tool for rendering markdown as an HTML slideshow.

To run you'll need a light http server, Python's http.server works well. To run:

python -m http.server

Some keyboard shortcuts:

  • P - Presenter mode
  • C - Clone for multiple screen
  • h - help
  • f - fullscreen

What I like

  • it's free
  • it's configurable, plus good to play around with HTML and CSS now and then
  • can be hosted on your website
  • instant dark mode with Dark Reader (a chrome plugin)

Styling

The default screen ratio can be changed to 16:9 (see the index.html file)

Extra Features

PDF printing

As mentioned in the documentation, printing to PDF can be done using Google Chrome's print but will not have a great layout. To correct this, add the following to the CSS:

@page {
  size: 1210px 681px;
  margin: 0;
}

@media print {
  .remark-slide-scaler {
    width: 100% !important;
    height: 100% !important;
    transform: scale(1) !important;
    top: 0 !important;
    left: 0 !important;
  }
}

CSS

Note that the CSS I've included here is a real mish-mash of me trying things out!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.