Skip to content

Wrapper on egonSchiele/mdpress that pulls markdown from URL.

Notifications You must be signed in to change notification settings

dergachev/url2mdpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

url2mdpress

Wrapper on egonSchiele/mdpress that pulls markdown from URL.

I wrote it to download markdown from Gingko and convert it to an impress.js slideshow, via the following command:

~/url2mdpress/url2mdpress.rb 
  --remove-horizontal-rules --slide-per-header \
  --move-mdpress-output \
  --cookie connect.sid=s%3ALE7Zi80AZijMX5hRuipZBein.LKJ1qADR2UqcRpxEl6JXRCgU8UqSGEYnlkFl4aP%2Fj0U \
  --url https://beta.gingkoapp.com/api/exports/2b8eba0efe143b2452000001.txt \
  -- -s evolvingweb

Usage

~/url2mdpress/url2mdpress.rb -h

Usage:
	url2mdpress [options] [-- extra-mdpress-args]

where [options] are:
                  --url, -u <s>:   Markdown URL
      --move-mdpress-output, -m:   Whether to move mdpress output files (index.html, css/, js/) to the current folder
        --save-markdown, -s <s>:   Save downloaded markdown to FILENAME in the current folder. (Default: presentation.md)
               --cookie, -c <s>:   Authentication cookie to use
         --mdpress-args, -d <s>:   Arguments for mdpress (eg '-s mytheme'), merged with [-- extra-mdpress-args]. (Default: -v)
               --config, -o <s>:   YAML file to read arguments from; file values override arguments. (Default: url2mdpress.yml)
  --remove-horizontal-rules, -r:   Remove all existing horizontal rules (---) in the markdown.
         --slide-per-header, -l:   Prepend horizontal rules (---) for each header (## Slide Title).
                     --help, -h:   Show this message

Resources:

Getting the session cookie

url2mdpress supports a --cookie argument, which lets it download markdown from password protected websites. You can extract the cookie via Chrome's Developer Tools, as follows: Screenshot

mdpress

To install the required mdpress gem:

gem install mdpress

To get the "HEAD" version of the mdpress gem, do this:

git clone git://github.com/egonSchiele/mdpress.git
cd mdpress
gem build mdpress.gemspec
gem install mdpress-0.0.12.gem

About mdpress and impress.js

Alternative tools

  • fork of Reveal JS that works with markdown (fork!)

About

Wrapper on egonSchiele/mdpress that pulls markdown from URL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages