From 55f62c1acb4bb802d0bba9df98e6e7bddc568712 Mon Sep 17 00:00:00 2001 From: Lilian Besson Date: Tue, 22 Mar 2016 09:56:17 +0100 Subject: [PATCH] Add a nonavbarfixed=y option to disable the fixed top nav-bar (someone asked for this feature, here it is). --- index.htm | 33 ++++++++++++++++++----------- index.html | 48 ++++++++++++++++++++++++++++--------------- index.pdf | Bin 95018 -> 95400 bytes strapdown.js | 12 ++++++++--- strapdown.min.js | 2 +- strapdown.verbose.js | 16 ++++++++++----- 6 files changed, 74 insertions(+), 37 deletions(-) diff --git a/index.htm b/index.htm index ca02387..8616dcf 100644 --- a/index.htm +++ b/index.htm @@ -1,4 +1,4 @@ -StrapDown.js on GitHub/Naereen/ +StrapDown.js on lbesson.bitbucket.org/md

StrapDown.js

StrapDown.js is an awesome on-the-fly Markdown @@ -8,25 +8,26 @@ to HTML https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js to load the script from a quick and secure (HTTPS-aware) CDN. -

  • comes with many examples: first, second, third, 4th, 5th, 6th, 7th...
  • +
  • quick and secure, thanks to Bitbucket and their SSL support (even if the certificate is not valid for https://lbesson.bitbucket.org, it is still secure),
  • +
  • comes with many examples: first, second, third, 4th, 5th, 6th, 7th, 8th...
  • an almost perfect support for text-only browsers (as w3m, links, or elinks): pure Markdown is simpler to read than complicated HTML full of javascript, images (or worse),
  • no external dependencies other than itself (and MathJax if you want to include it),
  • -
  • no spying, no logging, no external leaking of your pages (and Google Analytics with a 1px beacon image can be included with an option,
  • +
  • no spying, no logging, no external leaking of your pages (and Google Analytics with a 1px beacon image can be included with an option, and unfortunately rum.js from Bitbucket hosting server),
  • an excellent support of MathJax, as shown in this example or that one,
  • and, the last but not the least, an experimental embedding of the awesome SquirtFR bookmarklet to read as quickly as Lucky Luke.
  • +
  • Note : You can also use https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js to have a true HTTPS support, by loading the script from a quick and secure (HTTPS-aware) CDN.
  • Drawbacks?

    But there is also have a few things you need to know before using it:

    1. It might get slow for very long pages, even if a 3000-line document is handled very well and quickl (you can test by yourself with this long document),
    2. a reduced support for browsers without javascript or with javascript disabled (the pages are still readable, but really ugly),
    3. -
    4. hosted on GitHub and served by rawgit, which are wonderful but might not be always available.
    5. +
    6. hosted on Bitbucket, which is wonderful but might not be always available (~ 3 hours of maintenance every 6 months, as shown with a small screenshot below).

    Concretely

    -

    Concretely, GitHub is always up, secured and quick (oooh, and it is also awesome, completely free, and awesome too). Yeah, is it so awesome that I had to say it twice, you read it correctly!

    +

    Concretely, Bitbucket is always up, secured and quick (oooh, and Bitbucket is also awesome, completely free, and awesome too). Yeah, Bitbucket is so awesome that I had to say it twice, you read it correctly!

    But if you prefer, feel free to download the project (with StrapDown.js.zip) and upload it somewhere on your own server, or locally on your machine.

    -

    As the script is hosted on GitHub, it can be loaded quickly and securely from cdn.rawgit.com: https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js!

    +

    The script is also hosted on GitHub and so it can be loaded quickly and securely from cdn.rawgit.com: https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js!

    A quick "thank you" to the initial project

    My version of StrapDown.js is a fork of strapdownjs.com, a cool project that kinda seems dead by now.

    @@ -101,13 +102,12 @@ as shown in these three examples: example n°3 and <
  • cyborg, as used by the first two examples (and a demo on bootswatch.com/cyborg),
  • and united (as used one this very page that you are reading!), inspired from ubuntu (and a demo on bootswatch.com/united).
  • -

    I recently added some new themes, and now there is these 9 new themes.

    +

    I recently added some new themes, and now there is these 9 new themes.


    Cloning the StrapDown.js project?

    -

    As of now, StrapDown.js does not have it own git repository. -And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.org/md.

    +

    git clone https://github.com/Naereen/StrapDown.js

    A zip archive of the project

    -

    But, there, you can easily download this up-to-date version of the md subdir of my lbesson.bitbucket.org repository: +

    You can also easily download this up-to-date version of the md subdir of my lbesson.bitbucket.org repository: StrapDown.js.zip (and its PGP signature).


    @@ -128,6 +128,12 @@ It has a perfect support for Markdown markup.


    Future features or ideas?