Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tanboyu/remark-zoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

remark-zoom

Zoom in/out facility for remark.

Purpose

remark is a simple, in-browser, markdown-driven slideshow tool targeted at people who know their way around HTML and CSS. It works well, but a strange issue bothers me that, browser's zoom in/out hotkeys are disabled by the remark (see issues at the remark project's repository).

remark-zoom tries to provide zoom in/out facility for remark.

Usage

Load the remark-zoom.js script file after remark-latest.min.js. For example,

<!-- load remark.js main script -->
<script src="https://gnab.github.io/remark/downloads/remark-latest.min.js" type="text/javascript"></script>
<script>
 var slideshow = remark.create();
</script>
<!-- load our remark-zoom.js -->
<script src="remark-zoom.js" type="text/javascript"></script>

Keystrokes

The remark-zoom accepts the following keystrokes while viewing slides:

  • + (plus): zoom in.

  • - (minus): zoom out.

  • 0 (zero): reset to normal size.

When these keys are pressed, all texts (except h1 h2 h3) will be zoomed immediately. Images, however, will be zoomed only when mouse over.

Online demo

remark-zoom demo, hosted at GitHub Pages.

To view the slides locally

  1. Change working directory to the slide directory.

  2. Start a local web server, e.g.:

    $ python -m SimpleHTTPServer 8000
    
  3. Use any modern web browser to view the slides:

Feel free to change the port for HTTP.

Reference: https://github.com/gnab/remark/wiki#external-markdown

Tested browsers

I have only tested the remark-zoom for the following browsers. Feel free to fork and create push requests.

OK:

  • Chrome (on Mac): 37.0.2062.124

  • Chrome (on Windows): 39.0

  • Firefox (on Mac): 34.0

  • IE (on Windows): 11.0.9600

Zoom for image doesn't work:

  • Safari (on Mac): 8.0.2

License

Licensed under Apache License, Version 2.0.

Copyright © 2015 William Yeh.

About

Zoom in/out facility for remark.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • CSS 55.4%
  • JavaScript 29.4%
  • HTML 15.2%

AltStyle によって変換されたページ (->オリジナル) /