18 Commits

Author SHA1 Message Date
Lilian Besson
c31de22129 Create FUNDING.yml 2021-03-31 17:04:23 +02:00
Lilian Besson
958c54c55d Okay for #9 ? 2020-10-10 15:29:57 +02:00
Lilian Besson
2c1be9f284 Okay for #9 ? 2020-10-10 15:26:14 +02:00
Lilian Besson
381fe92408 Ooh, escaping backticks works for inline AsciiMath, cf #9
- and https://perso.crans.org/besson/publis/StrapDown.js/example11.html
2020-10-10 15:22:08 +02:00
Lilian Besson
bf69a9d4aa Failed, see #9 2020-10-10 13:25:31 +02:00
Lilian Besson
6710ae10c3 Failed example of using ASCIIMath with MathJax. See #9 2020-10-10 13:12:42 +02:00
Lilian Besson
9ce6263934 Merge pull request #7 from Coeur/typos
Some typos
2020-02-02 14:24:35 +01:00
Lilian Besson
59c6351f49 Fix #6 2020-02-02 14:22:49 +01:00
Antoine Cœur
bf525fb9d0 Some typos 2020-02-02 19:25:55 +08:00
Lilian Besson
ee9904217d Merge branch 'master' of github.com:Naereen/StrapDown.js 2018-12-16 23:29:48 +01:00
Lilian Besson
63d1db3a17 I think https://www.jsdelivr.com/rawgit is a better drop-in replacement for https://rawgit.com/
- Cf. #5
2018-12-16 23:29:39 +01:00
Lilian Besson
0567e7e1de Typo on https://naereen.github.io/StrapDown.js/example10.html 2017-05-19 23:19:46 +02:00
Lilian Besson
fc1b6f6417 cdn.mathjax.org is closing, using cdnjs (see https://www.mathjax.org/cdn-shutting-down/). 2017-04-25 15:07:53 +02:00
Lilian Besson
a9fc7fcc16 Force HTTPS... 2017-01-30 16:29:27 +01:00
Lilian Besson
7c5388f2b7 Trying to move from http://lbesson.bitbucket.org/ to http://lbesson.bitbucket.io/ 2017-01-18 16:51:18 +01:00
Lilian Besson
607c750bec Merge branch 'master' of github.com:Naereen/StrapDown.js 2017-01-18 16:43:44 +01:00
Lilian Besson
1ad9944ae8 Trying to move from http://lbesson.bitbucket.org/ to http://lbesson.bitbucket.io/ 2017-01-18 16:42:33 +01:00
Lilian Besson
729c45ded0 Example related to 'https://github.com/Naereen/StrapDown.js/issues/2#issuecomment-270481179'. 2017-01-05 08:25:17 +01:00
24 changed files with 384 additions and 237 deletions

12
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: Naereen # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

276
3000.html
View File

@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>StrapDown.js on lbesson.bitbucket.org/md</title></head><body><xmp theme="cyborg">
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>StrapDown.js on lbesson.bitbucket.io/md</title></head><body><xmp theme="cyborg">
# StrapDown.js
**StrapDown.js** is an awesome **on-the-fly** [Markdown](https://en.wikipedia.org/wiki/Markdown)
to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipedia.org/wiki/Compiler).
@@ -13,7 +13,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -25,10 +25,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -50,7 +50,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -64,7 +64,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -115,7 +115,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -144,7 +144,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -190,7 +190,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -202,10 +202,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -227,7 +227,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -241,7 +241,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -292,7 +292,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -321,7 +321,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -367,7 +367,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -379,10 +379,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -404,7 +404,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -418,7 +418,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -469,7 +469,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -498,7 +498,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -544,7 +544,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -556,10 +556,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -581,7 +581,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -595,7 +595,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -646,7 +646,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -675,7 +675,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -721,7 +721,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -733,10 +733,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -758,7 +758,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -772,7 +772,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -823,7 +823,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -852,7 +852,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -898,7 +898,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -910,10 +910,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -935,7 +935,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -949,7 +949,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -1000,7 +1000,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -1029,7 +1029,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -1075,7 +1075,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -1087,10 +1087,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -1112,7 +1112,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -1126,7 +1126,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -1177,7 +1177,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -1206,7 +1206,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -1252,7 +1252,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -1264,10 +1264,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -1289,7 +1289,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -1303,7 +1303,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -1354,7 +1354,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -1383,7 +1383,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -1429,7 +1429,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -1441,10 +1441,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -1466,7 +1466,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -1480,7 +1480,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -1531,7 +1531,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -1560,7 +1560,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -1606,7 +1606,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -1618,10 +1618,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -1643,7 +1643,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -1657,7 +1657,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -1708,7 +1708,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -1737,7 +1737,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -1783,7 +1783,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -1795,10 +1795,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -1820,7 +1820,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -1834,7 +1834,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -1885,7 +1885,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -1914,7 +1914,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -1960,7 +1960,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -1972,10 +1972,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -1997,7 +1997,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -2011,7 +2011,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -2062,7 +2062,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -2091,7 +2091,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -2137,7 +2137,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -2149,10 +2149,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -2174,7 +2174,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -2188,7 +2188,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -2239,7 +2239,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -2268,7 +2268,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -2314,7 +2314,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -2326,10 +2326,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -2351,7 +2351,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -2365,7 +2365,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -2416,7 +2416,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -2445,7 +2445,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -2491,7 +2491,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -2503,10 +2503,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -2528,7 +2528,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -2542,7 +2542,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -2593,7 +2593,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -2622,7 +2622,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -2668,7 +2668,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -2680,10 +2680,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -2705,7 +2705,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -2719,7 +2719,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -2770,7 +2770,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -2799,7 +2799,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -2845,7 +2845,7 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
5. no external dependencies other than itself (and MathJax if you want to include it),
6. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
7. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
8. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Defaults ?
@@ -2857,10 +2857,10 @@ But there is also have a few things you need to know before using it :
<img style="align:center;margin-right:auto;margin-left:auto;display:block;"
src="bitbucket_maintenance.png" alt="Maintenance on bitbucket.org"
title="Bitbucket.org annoucing a short maintenance" width="50%" />
title="Bitbucket.org announcing a short maintenance" width="50%" />
## Concretly
Concretly, 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.
## Concretely
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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
@@ -2882,7 +2882,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -2896,7 +2896,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>
```
### 3) [A second example](example2.html) *(you can click this to see it)*
@@ -2947,7 +2947,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example2"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example2"></script></body></html>
```
### 4) Last examples, with MathJax enabled
@@ -2976,7 +2976,7 @@ It has an excellent support for Markdown markup. **Warning:** but the LaTeX / Ma
# Cloning?
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.
And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.io/md.
But, there, you can download this not up-to-date version of the *md* subdir of my [lbesson.bitbucket.org](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/) repository :
[StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)
@@ -3009,6 +3009,6 @@ take a look at the [LICENSE](http://perso.crans.org/besson/LICENSE.html) file in
-----
# End
> This is a 3000 lines long document, and [StrapDown.js](http://lbesson.bitbucket.org/md/) is supporting it pretty well right ?
> This is a 3000 lines long document, and [StrapDown.js](//lbesson.bitbucket.io/md/) is supporting it pretty well right ?
</xmp><script type="text/javascript" src="strapdown.min.js"></script></body></html>

8
Makefile Normal file
View File

@@ -0,0 +1,8 @@
# Makefile to send this Git repository to Zam
SHELL=/usr/bin/env /bin/bash
all: send
send: send_zamok
send_zamok:
CP --exclude=.git ./ ${Szam}publis/StrapDown.js/

View File

@@ -9,13 +9,13 @@
1. *Directly write your documents in Markdown*, and let the browser do the boring *compilation* steps,
2. no need for CSS, theming or painful styling: *StrapDown.js* is already *friggin' beautiful*, and *responsive*,
3. *quick* and *secure*, thanks to *GitHub* and their great SSL support. Note : You can also use [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js) to load the script from a quick and secure (HTTPS-aware) CDN.
3. *quick* and *secure*, thanks to *GitHub* and their great SSL support. Note : You can also use [https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js](https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js) to load the script from a quick and secure (HTTPS-aware) CDN.
4. comes with many examples: <a href="example1.html" title="Example 1">first</a>, <a href="example2.html" title="Example 2">second</a>, <a href="example3.html" title="Example 3">third</a>, <a href="example4.html" title="Example 4">4th</a>, <a href="example5.html" title="Example 5">5th</a>, <a href="example6.html" title="Example 6">6th</a>, <a href="example7.html" title="Example 7">7th</a>, <a href="example8.html" title="Example 8">8th</a>, <a href="example9.html" title="Example 9">9th</a>, <a href="example10.html" title="Example 10">10th</a>...
5. 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),
6. no external dependencies other than itself (and [MathJax](http://www.mathjax.org/) if you want to include it),
7. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option,
8. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
9. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
9. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
## Drawbacks?
@@ -23,14 +23,14 @@ 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](3000.html)),
2. a reduced support for browsers *without javascript* or *with javascript disabled* (the pages are still readable, but really *ugly*),
3. hosted on [GitHub](https://github.com/) and served by [rawgit](https://rawgit.com), which are wonderful but *might* not be always available.
3. hosted on [GitHub](https://github.com/) and served by [JsDelivr](https://JsDelivr.com), which are wonderful but *might* not be always available.
## Concretely
Concretely, GitHub is [always](http://status.github.com/) *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!
But if you prefer, feel free to download the project (with [StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), it can be loaded *quickly* and *securely* from [cdn.rawgit.com](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js): [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js)!
As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), it can be loaded *quickly* and *securely* from [cdn.JsDelivr.com](https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js): [https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js](https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js)!
> ### A quick "thank you" to the [initial project](https://github.com/arturadib/strapdown/)
> My version of StrapDown.js is a fork of [strapdownjs.com](http://strapdownjs.com), a cool project that [kinda seems dead by now](https://github.com/arturadib/strapdown/graphs/contributors).
@@ -43,7 +43,7 @@ As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), i
----
### [This page](http://lbesson.bitbucket.org/md/index.html) explains how to use StrapDown.js:
### [This page](//lbesson.bitbucket.io/md/index.html) explains how to use StrapDown.js:
![Second demo](demo2.png "Demo of the demo!")
----
@@ -69,7 +69,7 @@ As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), i
----
## More details
More details on [http://lbesson.bitbucket.org/md/index.html](http://lbesson.bitbucket.org/md/index.html), with examples and extra explanations.
More details on [//lbesson.bitbucket.io/md/index.html](//lbesson.bitbucket.io/md/index.html), with examples and extra explanations.
----

View File

@@ -8,15 +8,15 @@
1. *Directly write your documents in Markdown*, and let the browser do the boring *compilation* steps,
2. no need for CSS, theming or painful styling: *StrapDown.js* is already *friggin' beautiful*, and *responsive*,
3. *quick* and *secure*, thanks to *GitHub* and their great SSL support. Note : You can also use [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js) to load the script from a quick and secure (HTTPS-aware) CDN.
3. *quick* and *secure*, thanks to *GitHub* and their great SSL support. Note : You can also use [https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js](https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js) to load the script from a quick and secure (HTTPS-aware) CDN.
4. comes with many examples: [first](example1.html), [second](example2.html), [third](example3.html), [4th](example4.html), [5th](example5.html), [6th](example6.html), [7th](example7.html), [8th](example8.html), [9th](example9.html), [10th](example10.html)...
5. 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),
6. no external dependencies other than itself (and [MathJax](http://www.mathjax.org/) if you want to include it),
7. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option,
8. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
9. quite lightweight: [![Only 32 Kb](https://badge-size.herokuapp.com/Naereen/StrapDown.js/master/strapdown.min.js)](https://github.com/Naereen/StrapDown.js/master/strapdown.min.js),
10. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
11. Note : You can also use [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](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.
10. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*.
11. Note : You can also use [https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js](https://cdn.jsdelivr.net/gh/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? :bug:
@@ -24,14 +24,14 @@ 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](3000.html)),
2. a reduced support for browsers *without javascript* or *with javascript disabled* (the pages are still readable, but really *ugly*),
3. hosted on [GitHub](https://github.com/) and served by [rawgit](https://rawgit.com), which are wonderful but *might* not be always available.
3. hosted on [GitHub](https://github.com/) and served by [JsDelivr](https://JsDelivr.com), which are wonderful but *might* not be always available.
## Concretely
Concretely, GitHub is [always](http://status.github.com/) *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!
But if you prefer, feel free to download the project (with [StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), it can be loaded *quickly* and *securely* from [cdn.rawgit.com](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js): [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js)!
As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), it can be loaded *quickly* and *securely* from [cdn.JsDelivr.com](https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js): [https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js](https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js)!
> ### A quick "thank you" to the [initial project](https://github.com/arturadib/strapdown/)
> My version of StrapDown.js is a fork of [strapdownjs.com](http://strapdownjs.com), a cool project that [kinda seems dead by now](https://github.com/arturadib/strapdown/graphs/contributors).
@@ -44,7 +44,7 @@ As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), i
----
### [This page](http://lbesson.bitbucket.org/md/index.html) explains how to use StrapDown.js:
### [This page](//lbesson.bitbucket.io/md/index.html) explains how to use StrapDown.js:
![Second demo](demo2.png "Demo of the demo!")
----
@@ -70,7 +70,7 @@ As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), i
----
## More details
More details on [http://lbesson.bitbucket.org/md/index.html](http://lbesson.bitbucket.org/md/index.html), with examples and extra explanations.
More details on [//lbesson.bitbucket.io/md/index.html](//lbesson.bitbucket.io/md/index.html), with examples and extra explanations.
----

View File

@@ -10,4 +10,4 @@
<li class="next"><a href="example1.html">Next example →</a></li>
</ul>
</xmp><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example0"></script></body></html>
</xmp><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example0"></script></body></html>

View File

@@ -18,4 +18,4 @@ Did you know that [Næreen](http://gravatar.com/naereen) is originally an Irania
<li class="next"><a href="example2.html">Next example →</a></li>
</ul>
</xmp><script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example1"></script></body></html>
</xmp><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example1"></script></body></html>

View File

@@ -60,9 +60,9 @@ This was a brief overview, to show the basic use of [StrapDown.js](index.html).
---
<ul class="pager">
<li class="previous"><a href="example7.html">← Previous example</a></li>
<li class="previous"><a href="example9.html">← Previous example</a></li>
<li><a href="index.html">Index</a></li>
<li class="next disabled"><a href="#">→ Next example</a></li>
<li class="next"><a href="example11.html">→ Next example</a></li>
</ul>
</xmp>

116
example11.html Normal file
View File

@@ -0,0 +1,116 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>A simple demo of MathJax with ASCIIMath with StrapDown.js</title></head><body><xmp theme="united">
<ul class="pager">
<li class="previous"><a href="example2.html">← Previous example</a></li>
<li><a href="index.html">Index</a></li>
<li class="next"><a href="example4.html">Next example →</a></li>
</ul>
## This short example supports [MathJax](http://www.mathjax.org/) using [ASCIIMath](http://asciimath.org/) syntax.
See this [issue #9](https://GitHub.com/Naereen/StrapDown.js/issues/9) on the GitHub page of StrapDown.js.
### 1st try: using backticks with no escape:
Inline equations, as for instance the classic `Delta = b^2-4ac` and
`x_(1,2) = (-b pm sqrt Delta)/(2a)`, or display equations as this one :
$$ J_(alpha)(x) = sum_(m=0)^(oo) ((-1)^m)/(m! Gamma(m + alpha + 1) (x/2)^(2 m + alpha) $$
**It fails**, as backticks are first interpreted as Markdown code for inline code, and the Markdown parser of StrapDown.js converts to HTML *before* MathJax loads in and can try to convert the code to maths.
### 2nd try: using backticks with escape (it works):
Inline equations, as for instance the classic \`Delta = b^2-4ac\` and
\`x\_(1,2) = (-b pm sqrt Delta)/(2a)\`, or display equations as this one :
```AsciiMath
J\_(alpha)(x) = sum\_(m=0)^(oo) ((-1)^m)/(m! Gamma(m + alpha + 1) (x/2)^(2 m + alpha)
```
Inline equations **work** but display equations **do not work**.
### Also using dollar sign as delimiter?
Let's see: $\Delta^2 - 4ac$ or
$x\_(1,2) = (-b pm sqrt Delta)/(2a)$, or display equations as this one :
$$J\_(alpha)(x) = sum\_(m=0)^(oo) ((-1)^m)/(m! Gamma(m + alpha + 1) (x/2)^(2 m + alpha)$$
**It fails**, even though I asked in the configuration of MathJax to accept dollars...
### Another example from a classic math book
But a less classic exercise about [Hölder functions](https://en.wikipedia.org/wiki/H%C3%B6lder_condition)
(more precisely, *Exercice 7*, Chapter 4.5, page 267, of the [Gourdon, "*Les maths en tête : Analyse*", \`2^(nd)\` edition](http://www.amazon.fr/gp/product/2729837590) book).
#### Inline equation: OKAY
\`4 sum\_(n=1)^(+oo) rho\_n^2 sin^2(nh) = 1/(2pi) int\_(-pi)^(pi) | f(x+h) - f(x-h)|^2 dx.\`
How-to?
The previous equation is simply included in the Markdown code part as some basic inline AsciiMath code (with escaped backticks):
> ```markdown
\`4 sum\_(n=1)^(+oo) rho\_n^2 sin^2(nh) = 1/(2pi) int\_(-pi)^(pi) | f(x+h) - f(x-h)|^2 dx.\`
```
#### Display equation: not OKAY (yet?)
```AsciiMath
4 sum\_(n=1)^(+oo) rho\_n^2 sin^2(nh) = 1/(2pi) int\_(-pi)^(pi) | f(x+h) - f(x-h)|^2 dx.
```
How-to? (it fails)
The previous equation is simply included in the Markdown code part as some basic AsciiMath code (with three escaped backticks then AsciiMath ... then three escaped backticks):
> ```latex
\̀ \`\`AsciiMath
4 sum_(n=1)^(+oo) rho_n^2 sin^2(nh) = 1/(2pi) int_(-pi)^(pi) | f(x+h) - f(x-h)|^2 dx.
\`\`\`
```
### Last examples
From the [GitHub issue #9](https://github.com/Naereen/StrapDown.js/issues/9)
- \`@(1/2[1-(1/2)^n])/(1-(1/2))=s_n@\` (works)
- \`oint\_Cx^3 dx+4y^2 dy\` (works)
- \`2=(((3-x)xx2)/(3-x))\` (works)
- \`sum\_(m=1)^(oo) sum\_(n=1)^(oo) (m^2 n)/(3^m (m 3^n + n 3^m)\` (fails if \_ are not escaped with a backslash \\)
***
## Yes, it is as simple as adding *one line at the bottom*
You just have to load [MathJax](http://www.mathjax.org/) (as described [here](http://docs.mathjax.org/en/latest/configuration.html))
from the bottom of a *StrapDown*-flavored page, for instance from the default *CDN* :
> ```html
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=AM_CHTML"></script>
```
I also tried to add another line after, to be safe:
> ```html
<script type="text/javascript">window.MathJax = { loader: { load: ['input/asciimath'] }, asciimath: { delimiters: [['$','$'], ['`','`']] } });</script>
```
but it does not change anything, so it's not mandatory (inline AsciiMath with escaped backticks works without this line, and all the other possibilities do not work, with or without this line).
You can consult [a second example](example4.html) to see some more advanced examples of LaTeX equations rendered with MathJax.
***
## See also
+ [This page](http://perso.crans.org/besson/math.html) shows how to use MathJax on a [Sphinx](http://sphinx-doc.org/) project.
+ [This script (strapdown2pdf)](strapdown2pdf.html) to print to PDF a *StrapDown*-powered web page. It comes with a limited support of LaTeX (still not perfect).
---
<ul class="pager">
<li class="previous"><a href="example10.html">← Previous example</a></li>
<li><a href="index.html">Index</a></li>
<li class="next disabled"><a href="#">→ Next example</a></li>
</ul>
</xmp>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=AM_CHTML&amp;locale=fr"></script>
<script type="text/javascript" src="strapdown.min.js"></script>
<script type="text/javascript">window.MathJax = { loader: { load: ['input/asciimath'] }, asciimath: { delimiters: [['$','$'], ['`','`']] } });</script>
</body></html>

View File

@@ -35,7 +35,7 @@ You just have to load [MathJax](http://www.mathjax.org/) (as described [here](ht
from the bottom of a *StrapDown*-flavored page, for instance from the default *CDN* :
> ```html
<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
```
You can consult [a second example](example4.html) to see some more advanced examples of LaTeX equations rendered with MathJax.
@@ -50,7 +50,7 @@ See [the first paragraph of this third example](example5.html) to see this.
Be aware of the following limitations :
## Escape the underscore ('``_``')
The [StrapDown.js](//lbesson.bitbucket.org/md/index.html) text processor interprets
The [StrapDown.js](//lbesson.bitbucket.io/md/index.html) text processor interprets
underscores (the '``_``' symbol) as underline markup (like _this_),
so be sure to escape the '``_``' in the $\LaTeX2e{}$ code.
@@ -96,6 +96,6 @@ It comes with a limited support of LaTeX (still not perfect).
</xmp>
<script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$']], displayMath: [['$$', '$$']], processEscapes: true } });</script>
<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&amp;locale=fr"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML&amp;locale=fr"></script>
<script type="text/javascript" src="strapdown.min.js"></script>
</body></html>

View File

@@ -110,6 +110,6 @@ That's all for today!
</xmp>
<script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$']], displayMath: [['$$', '$$']], processEscapes: true } });</script>
<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="//lbesson.bitbucket.org/md/strapdown.min.js?src=example4"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js?src=example4"></script>
</body></html>

View File

@@ -89,18 +89,18 @@ Content Cell | Content Cell
---
## A partial list of the [Justice League of America](https://en.wikipedia.org/wiki/Justice_League)
[StrapDown.js](http://lbesson.bitbucket.org/md/index.html) supports *really well* these Markdown tables, and the [GFM extension](https://help.github.com/articles/github-flavored-markdown) for alignment.
[StrapDown.js](//lbesson.bitbucket.io/md/index.html) supports *really well* these Markdown tables, and the [GFM extension](https://help.github.com/articles/github-flavored-markdown) for alignment.
Here is a last example, displaying some *super heroes* ^^:
| Number | Name | Secret Name! | Super Hero Group | Gender | Email Address | Photo |
| :----- |:----:|:------------:|:----------------:|:------:|:-------------:| -----:|
| 01 | **Superman** | *Clark Kent* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [superman@heroes.jloa.gov](mailto:superman@heroes.jloa.gov) | ![Picture for hero #01](https://randomuser.me/api/portraits/med/men/72.jpg "Picture for super-hero #01")|
| 02 | **Batman** | *Bruce Wayne* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [batman@heroes.jloa.gov](mailto:batman@heroes.jloa.gov) | ![Picture for hero #02](https://randomuser.me/api/portraits/med/men/45.jpg "Picture for super-hero #02")|
| 03 | **Green Lantern** | *Secret!* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [Green.Lantern@heroes.jloa.gov](mailto:Green.Lantern@heroes.jloa.gov) | ![Picture for hero #03](https://randomuser.me/api/portraits/med/men/51.jpg "Picture for super-hero #03")|
| 04 | **Wonder Woman** | *Secret!* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Female | [Wonder.Woman@heroes.jloa.gov](mailto:Wonder.Woman@heroes.jloa.gov) | ![Picture for hero #04](https://randomuser.me/api/portraits/med/women/25.jpg "Picture for super-hero #04")|
| 05 | **AwkGirl** | *Too lazy to look for it* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Female | [AwkGirl@heroes.jloa.gov](mailto:AwkGirl@heroes.jloa.gov) | ![Picture for hero #05](https://randomuser.me/api/portraits/med/women/88.jpg "Picture for super-hero #05")|
| 01 | **Superman** | *Clark Kent* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [superman@heroes.jloa.gov](mailto:superman@heroes.jloa.gov) | ![Picture for hero #01](https://randomuser.me/api/portraits/med/men/72.jpg "Picture for super-hero #01")|
| 02 | **Batman** | *Bruce Wayne* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [batman@heroes.jloa.gov](mailto:batman@heroes.jloa.gov) | ![Picture for hero #02](https://randomuser.me/api/portraits/med/men/45.jpg "Picture for super-hero #02")|
| 03 | **Green Lantern** | *Secret!* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [Green.Lantern@heroes.jloa.gov](mailto:Green.Lantern@heroes.jloa.gov) | ![Picture for hero #03](https://randomuser.me/api/portraits/med/men/51.jpg "Picture for super-hero #03")|
| 04 | **Wonder Woman** | *Secret!* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Female | [Wonder.Woman@heroes.jloa.gov](mailto:Wonder.Woman@heroes.jloa.gov) | ![Picture for hero #04](https://randomuser.me/api/portraits/med/women/25.jpg "Picture for super-hero #04")|
| 05 | **AwkGirl** | *Too lazy to look for it* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Female | [AwkGirl@heroes.jloa.gov](mailto:AwkGirl@heroes.jloa.gov) | ![Picture for hero #05](https://randomuser.me/api/portraits/med/women/88.jpg "Picture for super-hero #05")|
> *Hint:* these emails addresses are really secret, keep they from yourself, and especially from super villains! (Seriously: **they are fake!**)

View File

@@ -35,11 +35,11 @@ Here is an example of a table, displaying some *super heroes* ^^ <br>
| Number | Name | Secret Name! | Organization | Gender | Email Address | Photo | *Awesomeness* |
| :----- |:----:|:------------:|:------------:|:------:|:-------------:| -----:| ------------: |
| 01 | **Wonder Woman** | *Secret!* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Female | [Wonder.Woman@heroes.jloa.gov](mailto:Wonder.Woman@heroes.jloa.gov) | ![Picture for hero #01](https://randomuser.me/api/portraits/med/women/25.jpg "Picture for super-hero #01")| *Really awesome* |
| 02 | **Superman** | *Clark Kent* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [superman@heroes.jloa.gov](mailto:superman@heroes.jloa.gov) | ![Picture for hero #02](https://randomuser.me/api/portraits/med/men/72.jpg "Picture for super-hero #02")| *OK* |
| 03 | **Batman** | *Bruce Wayne* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [batman@heroes.jloa.gov](mailto:batman@heroes.jloa.gov) | ![Picture for hero #03](https://randomuser.me/api/portraits/med/men/45.jpg "Picture for super-hero #03")| *Wonderful* |
| 04 | **Green Lantern** | *Secret!* | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [Green.Lantern@heroes.jloa.gov](mailto:Green.Lantern@heroes.jloa.gov) | ![Picture for hero #04](https://randomuser.me/api/portraits/med/men/51.jpg "Picture for super-hero #04")| *OK* |
| 05 | **AwkGirl** | *Too lazy to [look for](https://www.duckduckgo.com/?q=AwkGirl+real+name) it* ([seriously](https://en.wikipedia.org/wiki/Hawkgirl#Fictional_character_biography)) | <abbr title="Juctice League of America!! Osef, I am French ;)">JLoA</abbr> | Female | [AwkGirl@heroes.jloa.gov](mailto:AwkGirl@heroes.jloa.gov) | ![Picture for hero #05](https://randomuser.me/api/portraits/med/women/88.jpg "Picture for super-hero #05")| *Not great* |
| 01 | **Wonder Woman** | *Secret!* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Female | [Wonder.Woman@heroes.jloa.gov](mailto:Wonder.Woman@heroes.jloa.gov) | ![Picture for hero #01](https://randomuser.me/api/portraits/med/women/25.jpg "Picture for super-hero #01")| *Really awesome* |
| 02 | **Superman** | *Clark Kent* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [superman@heroes.jloa.gov](mailto:superman@heroes.jloa.gov) | ![Picture for hero #02](https://randomuser.me/api/portraits/med/men/72.jpg "Picture for super-hero #02")| *OK* |
| 03 | **Batman** | *Bruce Wayne* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [batman@heroes.jloa.gov](mailto:batman@heroes.jloa.gov) | ![Picture for hero #03](https://randomuser.me/api/portraits/med/men/45.jpg "Picture for super-hero #03")| *Wonderful* |
| 04 | **Green Lantern** | *Secret!* | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Male | [Green.Lantern@heroes.jloa.gov](mailto:Green.Lantern@heroes.jloa.gov) | ![Picture for hero #04](https://randomuser.me/api/portraits/med/men/51.jpg "Picture for super-hero #04")| *OK* |
| 05 | **AwkGirl** | *Too lazy to [look for](https://www.duckduckgo.com/?q=AwkGirl+real+name) it* ([seriously](https://en.wikipedia.org/wiki/Hawkgirl#Fictional_character_biography)) | <abbr title="Justice League of America!! Osef, I am French ;)">JLoA</abbr> | Female | [AwkGirl@heroes.jloa.gov](mailto:AwkGirl@heroes.jloa.gov) | ![Picture for hero #05](https://randomuser.me/api/portraits/med/women/88.jpg "Picture for super-hero #05")| *Not great* |
> *Hint:* these emails addresses are really secret, keep them for yourself, but most importantly, keep them away from super villains! (Seriously: **pictures and emails they are fake!**)
@@ -69,7 +69,7 @@ If you want to display on the right of the page (as I did above), let's use a co
```
## 2) Load jQuery and the QuickSearch plug-in
At the **end** of your [StrapDown.js](http://lbesson.bitbucket.org/md/index.html) document, include the `jquery` javascript file (in my case `jquery.js`, but could be `jquery.min.js`), and the quicksearch plug-in (`jquery.quicksearch.min.js` in my case), with the good path.
At the **end** of your [StrapDown.js](//lbesson.bitbucket.io/md/index.html) document, include the `jquery` javascript file (in my case `jquery.js`, but could be `jquery.min.js`), and the quicksearch plug-in (`jquery.quicksearch.min.js` in my case), with the good path.
In my example, I used the version that I stored on [my website](http://perso.crans.org/besson/), but you can use the **jQuery** CDN, or host them yourself on your site.
What I did here was just these two simple lines.

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>StrapDown.js on lbesson.bitbucket.org/md</title></head>
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>StrapDown.js on lbesson.bitbucket.io/md</title></head>
<body>
<h1>StrapDown.js</h1>
<p><strong>StrapDown.js</strong> is an awesome <strong>on-the-fly</strong> <a href="https://en.wikipedia.org/wiki/Markdown">Markdown</a>
@@ -14,8 +14,8 @@ to <a href="https://en.wikipedia.org/wiki/HTML">HTML</a> <a href="https://en.wik
<li>no external dependencies other than itself (and <a href="http://www.mathjax.org/">MathJax</a> if you want to include it),</li>
<li>no spying, no logging, no external leaking of your pages (and <a href="http://perso.crans.org/besson/beacon.html">Google Analytics with a 1px beacon image</a> can be included with an option, and unfortunately <a href="https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature">rum.js from Bitbucket hosting server</a>),</li>
<li>an excellent support of <a href="http://www.mathjax.org/"><em>MathJax</em></a>, as shown in <a href="example3.html">this example</a> or <a href="example5.html">that one</a>,</li>
<li>and, the last but not the least, an <em>experimental</em> embedding of the awesome <a href="http://lbesson.bitbucket.org/squirt">SquirtFR</a> bookmarklet to read <em>as quickly as Lucky Luke</em>.</li>
<li>Note : You can also use <a href="https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js">https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js</a> to have a true HTTPS support, by loading the script from a quick and secure (HTTPS-aware) CDN.</li>
<li>and, the last but not the least, an <em>experimental</em> embedding of the awesome <a href="//lbesson.bitbucket.io/squirt">SquirtFR</a> bookmarklet to read <em>as quickly as Lucky Luke</em>.</li>
<li>Note : You can also use <a href="https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js">https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js</a> to have a true HTTPS support, by loading the script from a quick and secure (HTTPS-aware) CDN.</li>
</ol>
<h2>Drawbacks?</h2>
<p>But there is also have a few things you need to know before using it:</p>
@@ -27,7 +27,7 @@ to <a href="https://en.wikipedia.org/wiki/HTML">HTML</a> <a href="https://en.wik
<h2>Concretely</h2>
<p>Concretely, Bitbucket is <a href="http://status.bitbucket.org/">always</a> <em>up</em>, <em>secured</em> and <em>quick</em> (oooh, and Bitbucket is also awesome, completely free, and awesome too). Yeah, <em>Bitbucket is so awesome</em> that I had to say it <em>twice</em>, you read it correctly!</p>
<p>But if you prefer, feel free to download the project (with <a href="https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip">StrapDown.js.zip</a>) and upload it somewhere on your own server, or locally on your machine.</p>
<p>The script is also hosted on <a href="https://github.com/Naereen/StrapDown.js/">GitHub</a> and so it can be loaded <em>quickly</em> and <em>securely</em> from <a href="https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js">cdn.rawgit.com</a>: <a href="https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js">https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js</a>!</p>
<p>The script is also hosted on <a href="https://github.com/Naereen/StrapDown.js/">GitHub</a> and so it can be loaded <em>quickly</em> and <em>securely</em> from <a href="https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js">cdn.JsDelivr.com</a>: <a href="https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js">https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js</a>!</p>
<blockquote>
<h3>A quick "thank you" to the <a href="https://github.com/arturadib/strapdown/">initial project</a></h3>
<p>My version of StrapDown.js is a fork of <a href="http://strapdownjs.com">strapdownjs.com</a>, a cool project that <a href="https://github.com/arturadib/strapdown/graphs/contributors">kinda seems dead by now</a>.</p>
@@ -100,7 +100,7 @@ as shown in these three examples: <a href="example3.html">example n°3</a> and <
<p>There is now <strong>18 different themes</strong>, coming from <a href="http://bootswatch.com/">http://bootswatch.com/united</a> and from the original project (<a href="http://strapdownjs.com" title="Original project's website">strapdownjs.com</a>) :</p>
<ul>
<li>cyborg, as used by the <a href="example1.html">first two examples</a> (and a <a href="http://bootswatch.com/cyborg">demo on bootswatch.com/cyborg</a>),</li>
<li>and united (as used <a href="http://lbesson.bitbucket.org/md/index.html">one this very page that you are reading</a>!), inspired from <a href="https://www.ubuntu.com/">ubuntu</a> (and a <a href="http://bootswatch.com/united">demo on bootswatch.com/united</a>).</li>
<li>and united (as used <a href="//lbesson.bitbucket.io/md/index.html">one this very page that you are reading</a>!), inspired from <a href="https://www.ubuntu.com/">ubuntu</a> (and a <a href="http://bootswatch.com/united">demo on bootswatch.com/united</a>).</li>
</ul>
<p>I recently added some new themes, and now there is <a href="https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/themes/">these 9 new themes</a>.</p>
<hr />
@@ -130,14 +130,14 @@ For this purpose, <a href="https://bitbucket.org/lbesson/bin/history-node/master
<h1>Future features or ideas?</h1>
<ul>
<li>
<p>Improve the SSL certificate? As that screenshot shows, <a href="https://lbesson.bitbucket.org/md/">SSL is available</a>, but the certificate is not valid (it has been signed only for <a href="https://bitbucket.org">bitbucket.org</a> and <a href="https://www.bitbucket.org">www.bitbucket.org</a>):</p>
<p>Improve the SSL certificate? As that screenshot shows, <a href="https://lbesson.bitbucket.io/md/">SSL is available</a>, but the certificate is not valid (it has been signed only for <a href="https://bitbucket.org">bitbucket.org</a> and <a href="https://www.bitbucket.org">www.bitbucket.org</a>):</p>
</li>
<li>
<p>Maybe host it on a <a href="https://en.wikipedia.org/wiki/Content_delivery_network">CDN</a>?</p>
</li>
<li>Hack something to force using <em>local cached</em> version of the script and stylesheets rather than downloading them every time?</li>
<li>
<p>More "quick access" buttons on the top-navbar? (there is already a button to <a href="http://lbesson.bitbucket.org/squirt">use Squirt</a> (<a href="./SquirtFR_on_a_StrapDownJS_page.png">as shown in the example below</a>), one to <a href="http://www.mathjax.org">activate MathJax</a>, and one to <a href="http://perso.crans.org/besson/beacon.en.html">test a Google Analytics Beacon image</a>.)</p>
<p>More "quick access" buttons on the top-navbar? (there is already a button to <a href="//lbesson.bitbucket.io/squirt">use Squirt</a> (<a href="./SquirtFR_on_a_StrapDownJS_page.png">as shown in the example below</a>), one to <a href="http://www.mathjax.org">activate MathJax</a>, and one to <a href="http://perso.crans.org/besson/beacon.en.html">test a Google Analytics Beacon image</a>.)</p>
</li>
<li>
<p>… and any new idea is most surely welcome!</p>
@@ -145,7 +145,7 @@ For this purpose, <a href="https://bitbucket.org/lbesson/bin/history-node/master
</ul>
<h3>Some people are using it or talking about it!</h3>
<ul>
<li><a href="https://github.com/arturadib/strapdown/issues/36">This question asked on Github on the 1st of May of 2014</a> by <a href="https://github.com/hardly">hardly</a> about the <a href="https://github.com/arturadib/strapdown">old strapdown repository</a>. To answer that question: the main difference is than I am still interested and eager to work on <a href="http://lbesson.bitbucket.org/md/">my StrapDown.js</a>, but it seems to not be the case of <a href="https://github.com/arturadib/">the previous developper</a>.</li>
<li><a href="https://github.com/arturadib/strapdown/issues/36">This question asked on Github on the 1st of May of 2014</a> by <a href="https://github.com/hardly">hardly</a> about the <a href="https://github.com/arturadib/strapdown">old strapdown repository</a>. To answer that question: the main difference is than I am still interested and eager to work on <a href="//lbesson.bitbucket.io/md/">my StrapDown.js</a>, but it seems to not be the case of <a href="https://github.com/arturadib/">the previous developper</a>.</li>
<li><a href="http://quantego.com/">These guys at Quantego</a> are using my StrapDown.js for <a href="https://slides.quantego.com/">that small and interesting page</a>.</li>
<li>I got an email (<em>January 2015</em>) from one fellow working for <a href="http://www.nexirius.com/">www.nexirius.com</a>, and so I created the demos on tables to answer him: <a href="example6.html">example #6</a> and <a href="example7.html">example #7</a>.</li>
<li>In <em>March 2016</em>, someone asked my to add more options, like <code>nonavbarfixed=y</code> and <code>keepicon=y</code>, and add more themes, which I did, of course.</li>

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>StrapDown.js on lbesson.bitbucket.org/md</title></head><body><xmp>
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>StrapDown.js on lbesson.bitbucket.io/md</title></head><body><xmp>
# StrapDown.js
**StrapDown.js** is an awesome **on-the-fly** [Markdown](https://en.wikipedia.org/wiki/Markdown)
to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipedia.org/wiki/Compiler).
@@ -15,8 +15,8 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
7. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from Bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
8. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
9. quite lightweight: [![Only 32 Kb](https://badge-size.herokuapp.com/Naereen/StrapDown.js/master/strapdown.min.js)](https://github.com/Naereen/StrapDown.js/master/strapdown.min.js),
10. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*,
11. Note : You can also use [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](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.
10. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](//lbesson.bitbucket.io/squirt) bookmarklet to read *as quickly as Lucky Luke*,
11. Note : You can also use [https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js](https://cdn.jsdelivr.net/gh/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?
@@ -26,14 +26,14 @@ But there is also have a few things you need to know before using it:
2. a reduced support for browsers *without javascript* or *with javascript disabled* (the pages are still readable, but really *ugly*),
3. hosted on [Bitbucket](https://bitbucket.org/), which is wonderful but *might* not be always available (~ [3 hours of maintenance every 6 months](http://status.bitbucket.org/history), as shown with a small screenshot below).
<a href="http://status.bitbucket.org/history"><img style="align:center;margin-right:auto;margin-left:auto;display:block;" src="bitbucket_maintenance.png" alt="Maintenance on Bitbucket.org" title="Bitbucket.org annoucing a short maintenance" width="70%" /></a>
<a href="http://status.bitbucket.org/history"><img style="align:center;margin-right:auto;margin-left:auto;display:block;" src="bitbucket_maintenance.png" alt="Maintenance on Bitbucket.org" title="Bitbucket.org announcing a short maintenance" width="70%" /></a>
## Concretely
Concretely, Bitbucket is [always](http://status.bitbucket.org/) *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](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
The script is also hosted on [GitHub](https://github.com/Naereen/StrapDown.js/) and so it can be loaded *quickly* and *securely* from [cdn.rawgit.com](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js): [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js)!
The script is also hosted on [GitHub](https://github.com/Naereen/StrapDown.js/) and so it can be loaded *quickly* and *securely* from [cdn.JsDelivr.com](https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js): [https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js](https://cdn.jsdelivr.net/gh/Naereen/StrapDown.js@master/strapdown.min.js)!
> ### A quick "thank you" to the [initial project](https://github.com/arturadib/strapdown/)
@@ -54,7 +54,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
</textarea><script type="text/javascript" src="http://lbesson.bitbucket.org/md/strapdown.min.js"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js"></script></body></html>
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -68,7 +68,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
</textarea><script type="text/javascript" src="http://lbesson.bitbucket.org/md/strapdown.min.js"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js"></script></body></html>
```
---
@@ -140,7 +140,7 @@ with including a piece of Javascript code, before *or* after closing the *textar
## That's it
This was a brief overview, to show the basic use of [StrapDown.js](index.html).
</textarea><script type="text/javascript" src="http://lbesson.bitbucket.org/md/strapdown.min.js"></script></body></html>
</textarea><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js"></script></body></html>
```
### 4) More examples, with [MathJax](http://www.mathjax.org/) enabled
@@ -175,7 +175,7 @@ as shown in these three examples: [example n°3](example3.html) and [example n°
There is now **18 different themes**, coming from [http://bootswatch.com/united](http://bootswatch.com/) and from the original project ([strapdownjs.com](http://strapdownjs.com "Original project's website")) :
- cyborg, as used by the [first two examples](example1.html) (and a [demo on bootswatch.com/cyborg](http://bootswatch.com/cyborg)),
- and united (as used [one this very page that you are reading](http://lbesson.bitbucket.org/md/index.html)!), inspired from [ubuntu](https://www.ubuntu.com/) (and a [demo on bootswatch.com/united](http://bootswatch.com/united)).
- and united (as used [one this very page that you are reading](//lbesson.bitbucket.io/md/index.html)!), inspired from [ubuntu](https://www.ubuntu.com/) (and a [demo on bootswatch.com/united](http://bootswatch.com/united)).
I recently added some new themes, and now there is [these 9 new themes](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/themes/).
@@ -212,20 +212,20 @@ It has a perfect support for Markdown markup.
---
# Future features or ideas?
- Improve the SSL certificate? As that screenshot shows, [SSL is available](https://lbesson.bitbucket.org/md/), but the certificate is not valid (it has been signed only for [bitbucket.org](https://bitbucket.org) and [www.bitbucket.org](https://www.bitbucket.org)):
- Improve the SSL certificate? As that screenshot shows, [SSL is available](https://lbesson.bitbucket.io/md/), but the certificate is not valid (it has been signed only for [bitbucket.org](https://bitbucket.org) and [www.bitbucket.org](https://www.bitbucket.org)):
<a href="detail_SSL_certificate__24_11_2014.png" ><img style="align:center;margin-right:auto;margin-left:auto;display:block;" src="detail_SSL_certificate__24_11_2014.png" alt="Details of bitbucket.org SSL certificate" title="Details of bitbucket.org SSL certificate" width="70%" /></a>
- Maybe host it on a [CDN](https://en.wikipedia.org/wiki/Content_delivery_network)?
- Hack something to force using *local cached* version of the script and stylesheets rather than downloading them every time?
- More "quick access" buttons on the top-navbar? (there is already a button to [use Squirt](http://lbesson.bitbucket.org/squirt) ([as shown in the example below](./SquirtFR_on_a_StrapDownJS_page.png)), one to [activate MathJax](http://www.mathjax.org), and one to [test a Google Analytics Beacon image](http://perso.crans.org/besson/beacon.en.html).)
- More "quick access" buttons on the top-navbar? (there is already a button to [use Squirt](//lbesson.bitbucket.io/squirt) ([as shown in the example below](./SquirtFR_on_a_StrapDownJS_page.png)), one to [activate MathJax](http://www.mathjax.org), and one to [test a Google Analytics Beacon image](http://perso.crans.org/besson/beacon.en.html).)
<a href="SquirtFR_on_a_StrapDownJS_page.png" ><img style="align:center;margin-right:auto;margin-left:auto;display:block;" src="SquirtFR_on_a_StrapDownJS_page.png" alt="Demo of SquirtFR on a StrapDownJS-powered web page!" title="Demo of SquirtFR on a StrapDownJS-powered web page!" width="50%" /></a>
- … and any new idea is most surely welcome!
### Some people are using it or talking about it!
- [This question asked on Github on the 1st of May of 2014](https://github.com/arturadib/strapdown/issues/36) by [hardly](https://github.com/hardly) about the [old strapdown repository](https://github.com/arturadib/strapdown). To answer that question: the main difference is than I am still interested and eager to work on [my StrapDown.js](http://lbesson.bitbucket.org/md/), but it seems to not be the case of [the previous developper](https://github.com/arturadib/).
- [This question asked on Github on the 1st of May of 2014](https://github.com/arturadib/strapdown/issues/36) by [hardly](https://github.com/hardly) about the [old strapdown repository](https://github.com/arturadib/strapdown). To answer that question: the main difference is than I am still interested and eager to work on [my StrapDown.js](//lbesson.bitbucket.io/md/), but it seems to not be the case of [the previous developper](https://github.com/arturadib/).
- [These guys at Quantego](http://quantego.com/) are using my StrapDown.js for [that small and interesting page](https://slides.quantego.com/).
- I got an email (*January 2015*) from one fellow working for [www.nexirius.com](http://www.nexirius.com/), and so I created the demos on tables to answer him: [example #6](example6.html) and [example #7](example7.html).
- In *March 2016*, someone asked my to add more options, like ``nonavbarfixed=y`` and ``keepicon=y``, and add more themes, which I did, of course.

11
nounstyledcode.html Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>Test without Flash of Unstyled Code</title></head><body><xmp style="visibility:hidden;display:none;">
# This is a test of a [StrapDown.js](http://lbesson.bitbucket.io/md/) powered webpage
The only difference is I added a `style="visibility:hidden;display:none;"` attribute to the `<xmp>` tag containing the Markdown code.
- *it's nice*, because for this page, the unstyled code (i.e., raw Markdown code) does not appear in the first second of the loading of the page,
- but *it's not perfect*, as the page is fully empty on a text-only browser, or for browsers without javascript (or disabled javascript).
> For more information, c.f., this [GitHub issue](https://github.com/Naereen/StrapDown.js/issues/2).
</xmp><script type="text/javascript" src="//lbesson.bitbucket.io/md/strapdown.min.js"></script></body></html>

View File

@@ -1,7 +1,7 @@
/**
* StrapDown.js - an on-the-fly markdown parser
* Copyright (C) 2014-15, Lilian Besson. (GPLv3 Licensed)
* http://lbesson.bitbucket.org/md/
* //lbesson.bitbucket.io/md/
*/
/*

View File

@@ -1,7 +1,7 @@
/**
* StrapDown.js - an on-the-fly markdown parser
* Copyright (C) 2016, Lilian Besson. (GPLv3 Licensed)
* http://lbesson.bitbucket.org/md/
* //lbesson.bitbucket.io/md/
* https://GitHub.com/Naereen/StrapDown.js
* Version: 0.8
*/
@@ -180,7 +180,7 @@ function replace(regex,opt){regex=regex.source;opt=opt||'';return function self(
function noop(){}
noop.exec=noop;function merge(obj){var i=1,target,key;for(;i<arguments.length;i++){target=arguments[i];for(key in target){if(Object.prototype.hasOwnProperty.call(target,key)){obj[key]=target[key];}}}
return obj;}
function marked(src,opt){try{if(opt)opt=merge({},marked.defaults,opt);return Parser.parse(Lexer.lex(src,opt),opt);}catch(e){e.message+='\nPlease report this to https://github.com/chjj/marked.';if((opt||marked.defaults).silent){return'An error occured:\n'+e.message;}
function marked(src,opt){try{if(opt)opt=merge({},marked.defaults,opt);return Parser.parse(Lexer.lex(src,opt),opt);}catch(e){e.message+='\nPlease report this to https://github.com/chjj/marked.';if((opt||marked.defaults).silent){return'An error occurred:\n'+e.message;}
throw e;}}
marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked;};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,smartLists:false,silent:false,highlight:null,langPrefix:'lang-'};marked.Parser=Parser;marked.parser=Parser.parse;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof exports==='object'){module.exports=marked;}else if(typeof define==='function'&&define.amd){define(function(){return marked;});}else{this.marked=marked;}}).call(function(){return this||(typeof window!=='undefined'?window:global);}());
// Copyright (C) 2006 Google Inc.
@@ -374,7 +374,7 @@ var PR=win['PR']={'createSimpleLexer':createSimpleLexer,'registerLangHandler':re
}
var originBase = origin.substr(0, origin.lastIndexOf('/'));
// origin = http://0.0.0.0/s/md/strapdown.js?src=source.html&mathjax=y&beacon=y&theme=cyborg is the complete address
// origin = https://0.0.0.0/s/md/strapdown.js?src=source.html&mathjax=y&beacon=y&theme=cyborg is the complete address
function searchURL(myURL) { // Source: http://www.abeautifulsite.net/parsing-urls-in-javascript/
var parserForURL = document.createElement('a'),
@@ -461,15 +461,15 @@ var PR=win['PR']={'createSimpleLexer':createSimpleLexer,'registerLangHandler':re
if (!navbarEl && titleEl) {
newNode.innerHTML = '<div class="navbar-inner"> <div class="container"> <div id="headline" class="brand"> </div> '
+ '<div id="headline-copyrights" class="brand">('
+ '<a title="http://lbo.k.vu/md" href="http://lbesson.bitbucket.org/md/index.html?src=strapdown.js">StrapDown.js</a> v0.8, '
+ '<a title="http://lbo.k.vu/md" href="//lbesson.bitbucket.io/md/index.html?src=strapdown.js">StrapDown.js</a> v0.8, '
+ 'theme <a title="More information on this theme on bootswatch.com!" href="http://bootswatch.com/'+theme+'">'+theme+'</a>, '
+ 'thanks to <a href="https://bitbucket.org/">BitBucket</a>)</div> '
+ '<div id="headline-squirt" class="brand"> <a title="Quick reader script! Check http://lbesson.bitbucket.org/squirt/ for more details" '
+ 'href="javascript:(function(){sq=window.sq;if(sq&&sq.closed){window.sq.closed&&window.document.dispatchEvent(new Event(\'squirt.again\'));}else{sq=window.sq||{};sq.version=\'0.4\';sq.host=\'http://lbesson.bitbucket.org/squirt\';sq.j=document.createElement(\'script\');sq.j.src=sq.host+\'/squirt.js?src=strapdown.js\';document.body.appendChild(sq.j);}})();" '
+ '<div id="headline-squirt" class="brand"> <a title="Quick reader script! Check //lbesson.bitbucket.io/squirt/ for more details" '
+ 'href="javascript:(function(){sq=window.sq;if(sq&&sq.closed){window.sq.closed&&window.document.dispatchEvent(new Event(\'squirt.again\'));}else{sq=window.sq||{};sq.version=\'0.4\';sq.host=\'//lbesson.bitbucket.io/squirt\';sq.j=document.createElement(\'script\');sq.j.src=sq.host+\'/squirt.js?src=strapdown.js\';document.body.appendChild(sq.j);}})();" '
+ '>SquirtFR?</a>'
// var scriptElMathJax = document.createElement(\'script\'); scriptElMathJax.type = \'text/x-mathjax-config\'; scriptElMathJax.innerHTML = \'MathJax.Hub.Config({ tex2jax: { inlineMath: [[\\\'$\\\',\\\'$\\\']], displayMath: [ [\\\'$$\\\',\\\'$$\\\'] ], processEscapes: false } });\'; document.body.appendChild(scriptElMathJax);
+ ' <a title="Import MathJax?" href="javascript:(function(){ var scriptElMathJax = document.createElement(\'script\'); scriptElMathJax.type = \'text/javascript\'; scriptElMathJax.src = \'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML&amp;locale=fr\'; document.head.appendChild(scriptElMathJax); })();" >MathJax?</a>'
+ ' <a title="Fetch a beacon image?" href="javascript:(function(){ var linkEl = document.createElement(\'img\'); linkEl.alt = \'GA|Analytics\'; linkEl.style = \'visibility: hidden; display: none;\'; linkEl.src = \'http://perso.crans.org/besson/beacon/14/navbar/strapdown.js?pixel\'; document.body.appendChild(linkEl); })();">Beacon?</a>' // https://ga-beacon.appspot.com/UA-38514290-14/
+ ' <a title="Import MathJax?" href="javascript:(function(){ var scriptElMathJax = document.createElement(\'script\'); scriptElMathJax.type = \'text/javascript\'; scriptElMathJax.src = \'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML&amp;locale=fr\'; document.head.appendChild(scriptElMathJax); })();" >MathJax?</a>'
+ ' <a title="Fetch a beacon image?" href="javascript:(function(){ var linkEl = document.createElement(\'img\'); linkEl.alt = \'GA|Analytics\'; linkEl.style = \'visibility: hidden; display: none;\'; linkEl.src = \'https://perso.crans.org/besson/beacon/14/navbar/strapdown.js?pixel\'; document.body.appendChild(linkEl); })();">Beacon?</a>' // https://ga-beacon.appspot.com/UA-38514290-14/
+ '</div> </div> </div>';
if (!(queryOrigin['nonnavbar'])) {
document.body.insertBefore(newNode, document.body.firstChild);
@@ -516,7 +516,7 @@ var PR=win['PR']={'createSimpleLexer':createSimpleLexer,'registerLangHandler':re
// All done - show body
document.body.style.display = '';
// MathJax configuration (http://docs.mathjax.org/en/latest/configuration.html#configuring-mathjax-after-it-is-loaded)
// MathJax configuration (https://docs.mathjax.org/en/latest/configuration.html#configuring-mathjax-after-it-is-loaded)
var scriptElMathJax = document.createElement('script');
scriptElMathJax.type = 'text/x-mathjax-config';
scriptElMathJax.innerHTML = 'MathJax.Hub.Config({ tex2jax: { inlineMath: [[\'$\',\'$\']], displayMath: [ [\'$$\',\'$$\']], processEscapes: true } });';
@@ -526,7 +526,7 @@ var PR=win['PR']={'createSimpleLexer':createSimpleLexer,'registerLangHandler':re
if ( queryOrigin['mathjax'] ) {
var scriptElMathJax = document.createElement('script');
scriptElMathJax.type = 'text/javascript';
scriptElMathJax.src = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML&amp;locale=fr';
scriptElMathJax.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML&amp;locale=fr';
document.head.appendChild(scriptElMathJax);
}
@@ -536,7 +536,7 @@ var PR=win['PR']={'createSimpleLexer':createSimpleLexer,'registerLangHandler':re
var linkEl = document.createElement('img');
linkEl.alt = 'GA|Analytics';
linkEl.style = 'visibility: hidden; display: none;';
linkEl.src = 'http://perso.crans.org/besson/beacon/14/query/strapdown.js?pixel'; /* https://ga-beacon.appspot.com/UA-38514290-14 */
linkEl.src = 'https://perso.crans.org/besson/beacon/14/query/strapdown.js?pixel'; /* https://ga-beacon.appspot.com/UA-38514290-14 */
document.body.appendChild(linkEl);
}

2
strapdown.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -116,7 +116,7 @@
} catch (ex) {
ex.message += "\nPlease report this to https://github.com/chjj/marked.";
if ((opt || marked.defaults).silent) {
return "An error occured:\n" + ex.message;
return "An error occurred:\n" + ex.message;
}
throw ex;
}
@@ -2057,9 +2057,9 @@ var prettyPrint;
}
if (!u && a) {
/** @type {string} */
newNode.innerHTML = '<div class="navbar-inner"> <div class="container"> <div id="headline" class="brand"> </div> ' + '<div id="headline-copyrights" class="brand">(' + '<a title="http://lbo.k.vu/md" href="http://lbesson.bitbucket.org/md/index.html?src=strapdown.js">StrapDown.js</a> v0.8, ' + 'theme <a title="More information on this theme on bootswatch.com!" href="http://bootswatch.com/' + name + '">' + name + "</a>, " + 'thanks to <a href="https://bitbucket.org/">BitBucket</a>)</div> ' +
'<div id="headline-squirt" class="brand"> <a title="Quick reader script! Check http://lbesson.bitbucket.org/squirt/ for more details" ' + "href=\"javascript:(function(){sq=window.sq;if(sq&&sq.closed){window.sq.closed&&window.document.dispatchEvent(new Event('squirt.again'));}else{sq=window.sq||{};sq.version='0.4';sq.host='http://lbesson.bitbucket.org/squirt';sq.j=document.createElement('script');sq.j.src=sq.host+'/squirt.js?src=strapdown.js';document.body.appendChild(sq.j);}})();\" " + ">SquirtFR?</a>" + " <a title=\"Import MathJax?\" href=\"javascript:(function(){ var scriptElMathJax = document.createElement('script'); scriptElMathJax.type = 'text/javascript'; scriptElMathJax.src = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML&amp;locale=fr'; document.head.appendChild(scriptElMathJax); })();\" >MathJax?</a>" +
" <a title=\"Fetch a beacon image?\" href=\"javascript:(function(){ var linkEl = document.createElement('img'); linkEl.alt = 'GA|Analytics'; linkEl.style = 'visibility: hidden; display: none;'; linkEl.src = 'http://perso.crans.org/besson/beacon/14/navbar/strapdown.js?pixel'; document.body.appendChild(linkEl); })();\">Beacon?</a>" + "</div> </div> </div>";
newNode.innerHTML = '<div class="navbar-inner"> <div class="container"> <div id="headline" class="brand"> </div> ' + '<div id="headline-copyrights" class="brand">(' + '<a title="http://lbo.k.vu/md" href="//lbesson.bitbucket.io/md/index.html?src=strapdown.js">StrapDown.js</a> v0.8, ' + 'theme <a title="More information on this theme on bootswatch.com!" href="http://bootswatch.com/' + name + '">' + name + "</a>, " + 'thanks to <a href="https://bitbucket.org/">BitBucket</a>)</div> ' +
'<div id="headline-squirt" class="brand"> <a title="Quick reader script! Check //lbesson.bitbucket.io/squirt/ for more details" ' + "href=\"javascript:(function(){sq=window.sq;if(sq&&sq.closed){window.sq.closed&&window.document.dispatchEvent(new Event('squirt.again'));}else{sq=window.sq||{};sq.version='0.4';sq.host='//lbesson.bitbucket.io/squirt';sq.j=document.createElement('script');sq.j.src=sq.host+'/squirt.js?src=strapdown.js';document.body.appendChild(sq.j);}})();\" " + ">SquirtFR?</a>" + " <a title=\"Import MathJax?\" href=\"javascript:(function(){ var scriptElMathJax = document.createElement('script'); scriptElMathJax.type = 'text/javascript'; scriptElMathJax.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML&amp;locale=fr'; document.head.appendChild(scriptElMathJax); })();\" >MathJax?</a>" +
" <a title=\"Fetch a beacon image?\" href=\"javascript:(function(){ var linkEl = document.createElement('img'); linkEl.alt = 'GA|Analytics'; linkEl.style = 'visibility: hidden; display: none;'; linkEl.src = 'https://perso.crans.org/besson/beacon/14/navbar/strapdown.js?pixel'; document.body.appendChild(linkEl); })();\">Beacon?</a>" + "</div> </div> </div>";
if (!(fmt["nonavbarfixed"])) {
document.body.insertBefore(newNode, document.body.firstChild);
}
@@ -2117,7 +2117,7 @@ var prettyPrint;
/** @type {string} */
script.type = "text/javascript";
/** @type {string} */
script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML&amp;locale=fr";
script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML&amp;locale=fr";
document.head.appendChild(script);
}
if (fmt["beacon"]) {
@@ -2128,7 +2128,7 @@ var prettyPrint;
/** @type {string} */
node.style = "visibility: hidden; display: none;";
/** @type {string} */
node.src = "http://perso.crans.org/besson/beacon/14/query/strapdown.js?pixel";
node.src = "https://perso.crans.org/besson/beacon/14/query/strapdown.js?pixel";
document.body.appendChild(node);
}
})(window, document);

View File

@@ -3,12 +3,12 @@
# Email: Lilian.BESSON[AT]ens-cachan[DOT]fr
# Date: 24-10-2015
# Web: http://perso.crans.org/besson/bin/strapdown2pdf
# Web2: http://lbesson.bitbucket.org/strapdown2pdf.html
# Web2: http://lbesson.bitbucket.io/strapdown2pdf.html
#
# strapdown2pdf, a small script to simply convert a "StrapDown.js flavored"
# HTML file (used to write with a Markdown syntax) to a PDF document.
#
# More details on http://lbesson.bitbucket.org/strapdown2pdf.html
# More details on http://lbesson.bitbucket.io/strapdown2pdf.html
#
# Requirements:
# + [lunamark](http://jgm.github.io/lunamark/lunamark.1.html)
@@ -17,7 +17,7 @@
# + [pdflatex](http://perso.crans.org/besson/bin/pdflatex) (from my webpage).
#
# References and more details:
# + [StrapDown.js](http://lbesson.bitbucket.org/md/)
# + [StrapDown.js](//lbesson.bitbucket.io/md/)
#
# Licence: [GPLv3](http://perso.crans.org/besson/LICENCE.html)
#
@@ -225,7 +225,7 @@ StrapDown2PDF() {
# And a final line to say "Compiled from HTML/MarkDown with StrapDown.js to PDF with ..."
if [ "$discrete" != "true" ]; then
echo -e "\n\n\n\n%% Added with strapdown2pdf\n\\\\hspace{\\\\fill}\n\\\\vfill{}\n\n\\\\hspace{\\\\fill}\\\\rule{.6\\\\linewidth}{0.4pt}\\\\hspace{\\\\fill}\n\n\\\\begin{quote}\n\\\\begin{footnotesize}\n (Compiled to \\\\textbf{PDF} from a \\\\texttt{HTML/Markdown} file (powered by \\\\href{http://lbesson.bitbucket.org/md/}{\\\\texttt{StrapDown.js}}) with \\\\textbf{\\\\href{http://lbesson.bitbucket.org/md/strapdown2pdf.html}{strapdown2pdf}}, \\\\texttt{v${version}}.)\n\\\\end{footnotesize}\n\\\\end{quote}\n" >> "${name}".tex
echo -e "\n\n\n\n%% Added with strapdown2pdf\n\\\\hspace{\\\\fill}\n\\\\vfill{}\n\n\\\\hspace{\\\\fill}\\\\rule{.6\\\\linewidth}{0.4pt}\\\\hspace{\\\\fill}\n\n\\\\begin{quote}\n\\\\begin{footnotesize}\n (Compiled to \\\\textbf{PDF} from a \\\\texttt{HTML/Markdown} file (powered by \\\\href{//lbesson.bitbucket.io/md/}{\\\\texttt{StrapDown.js}}) with \\\\textbf{\\\\href{//lbesson.bitbucket.io/md/strapdown2pdf.html}{strapdown2pdf}}, \\\\texttt{v${version}}.)\n\\\\end{footnotesize}\n\\\\end{quote}\n" >> "${name}".tex
fi
# Compile in batchmode it with autotex, to automatically add headers and packages stuff

View File

@@ -1,15 +1,15 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>StrapDown2PDF</title></head>
<body>
<blockquote>
<h3>Please, before reading this page, be sure to know what <a href="http://lbesson.bitbucket.org/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> is</h3>
<p>Check out <a href="http://lbesson.bitbucket.org/md/index.html" title="Explanations on StrapDown.js !">index.html</a> if you don't know yet how cool <a href="http://lbesson.bitbucket.org/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> is !</p>
<h3>Please, before reading this page, be sure to know what <a href="//lbesson.bitbucket.io/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> is</h3>
<p>Check out <a href="//lbesson.bitbucket.io/md/index.html" title="Explanations on StrapDown.js !">index.html</a> if you don't know yet how cool <a href="//lbesson.bitbucket.io/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> is !</p>
</blockquote>
<hr />
<h1>StrapDown2PDF</h1>
<p><a href="http://lbesson.bitbucket.org/md/strapdown2pdf" title="A super cool Bash script !">StrapDown2PDF</a> is a <strong>super cool</strong> Bash script designed to print a <em>StrapDown</em>-powered web-page to a PDF document.</p>
<p><a href="//lbesson.bitbucket.io/md/strapdown2pdf" title="A super cool Bash script !">StrapDown2PDF</a> is a <strong>super cool</strong> Bash script designed to print a <em>StrapDown</em>-powered web-page to a PDF document.</p>
<h2>More details</h2>
<p>To be more precise, <a href="http://lbesson.bitbucket.org/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> allows you to write pretty HTML pages with the Markdown syntax (more details here <a href="http://lbesson.bitbucket.org/md/index.html" title="Explanations on StrapDown.js !">index.html</a>).</p>
<p>And <a href="http://lbesson.bitbucket.org/md/strapdown2pdf" title="A super cool Bash script !">StrapDown2PDF</a> can be used (on your laptop, from the command line) to transform the document from HTML (writen with Markdown) to PDF (with one intermediate phasis as a LaTeX file).</p>
<p>To be more precise, <a href="//lbesson.bitbucket.io/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> allows you to write pretty HTML pages with the Markdown syntax (more details here <a href="//lbesson.bitbucket.io/md/index.html" title="Explanations on StrapDown.js !">index.html</a>).</p>
<p>And <a href="//lbesson.bitbucket.io/md/strapdown2pdf" title="A super cool Bash script !">StrapDown2PDF</a> can be used (on your laptop, from the command line) to transform the document from HTML (written with Markdown) to PDF (with one intermediate phasis as a LaTeX file).</p>
<hr />
<h2>Example and how-to</h2>
<p><a href="strapdown2pdf.pdf">This page as a PDF</a> is a pretty good example of an automatically compiled PDF file.</p>
@@ -23,7 +23,7 @@ $ strapdown2pdf MyWebPage.html # This will produce "MyWebPage.pdf"</code>
</blockquote>
<h3>More than one file at a time ?</h3>
<p><strong>strapdown2pdf</strong> even supports multi arguments.
For instance, the following command will print to PDF every <a href="http://lbesson.bitbucket.org/md/" title="Homepage of StrapDown.js !">StrapDown.js</a>-flavored HTML file in the current directory:</p>
For instance, the following command will print to PDF every <a href="//lbesson.bitbucket.io/md/" title="Homepage of StrapDown.js !">StrapDown.js</a>-flavored HTML file in the current directory:</p>
<blockquote>
<p><code>bash
$ echo "Calling 'strapdown2pdf *.html' will produce a PDF for every .html document in the current directory."
@@ -59,7 +59,7 @@ In particular, strapdown2pdf is provided WITHOUT ANY WARANTY.
<p><strong>strapdown2pdf</strong> now comes with these options:</p>
<ul>
<li><code>-interactive</code> (shortcut is <code>-i</code>) to run <a href="http://perso.crans.org/besson/bin/pdflatex">PDFLaTeX</a> with the interactive (errorstopmode) mode (default is batchmode),</li>
<li><code>-quiet</code> (shortcut is <code>-q</code>) to run <a href="http://lbesson.bitbucket.org/md/strapdown2pdf.html">strapdown2pdf</a> in quiet mode (no output at all, everything is redirected to <code>/tmp/strapdown2pdf.log</code>),</li>
<li><code>-quiet</code> (shortcut is <code>-q</code>) to run <a href="//lbesson.bitbucket.io/md/strapdown2pdf.html">strapdown2pdf</a> in quiet mode (no output at all, everything is redirected to <code>/tmp/strapdown2pdf.log</code>),</li>
<li><code>-htm</code> (shortcut is <code>-m</code>) to produce a simple HTML file (which do not use StrapDown.js, see <a href="./strapdown2pdf.htm">this example strapdown2pdf.htm</a>), written to a .htm file. For important document, producing a .htm autonomous file is a good idea,</li>
<li><code>-discrete</code> (shortcut is <code>-d</code>) to run strapdown2pdf is discrete mode, without adding any creditentials in the produced document,</li>
<li><code>-s[0-9][0-9]*%</code> (e.g. <code>-79%</code>) to change the default scale used by autotex (default is 85%, '-70%', '-75%' or '-80%' are good also),</li>
@@ -73,7 +73,7 @@ In particular, strapdown2pdf is provided WITHOUT ANY WARANTY.
<li><a href="http://jgm.github.io/lunamark/lunamark.1.html">lunamark</a> (an awesome <em>lua</em>-powered Markdown to LaTeX processor),</li>
<li><a href="http://perso.crans.org/besson/bin/autotex">autotex</a> (from my web page, or from <a href="https://bitbucket.org/lbesson/bin/src/master/autotex">bin/autotex</a>).</li>
</ul>
<h2>Optionnal requirements</h2>
<h2>Optional requirements</h2>
<p>These external scripts are not really mandatory, you could do without it by modifying a couple of lines of the script's code:</p>
<ul>
<li><a href="http://perso.crans.org/besson/bin/PDFCompress">PDFCompress</a> (from my web page, or from <a href="https://bitbucket.org/lbesson/bin/src/master/PDFCompress">bin/PDFCompress</a>),</li>
@@ -81,7 +81,7 @@ In particular, strapdown2pdf is provided WITHOUT ANY WARANTY.
</ul>
<hr />
<h1>Future features ?</h1>
<h3>A 100% perfect support for embeded LaTeX code</h3>
<h3>A 100% perfect support for embedded LaTeX code</h3>
<p>These two examples (<a href="example3.html">3</a> and <a href="example4.html">4</a>) show how to include <a href="http://www.mathjax.org/">MathJax</a>
in a <em>StrapDown</em>-flavored HTML page to simply embed some <em>LaTeX</em> equations.</p>
<blockquote>
@@ -101,13 +101,13 @@ Any feedback is welcome, and I will continue to improve this feature.</p>
<hr />
<h3>Autocompile on the fly ?</h3>
<p>Make a version "on the browser" ?
Something like, if <a href="http://lbesson.bitbucket.org/md/index.html" title="Explanations on StrapDown.js !">index.html</a> uses <a href="http://lbesson.bitbucket.org/md/" title="Homepage of StrapDown.js !">StrapDown.js</a>, then <a href="index.html?pdf">index.html?pdf</a> can be the same HTML page,
Something like, if <a href="//lbesson.bitbucket.io/md/index.html" title="Explanations on StrapDown.js !">index.html</a> uses <a href="//lbesson.bitbucket.io/md/" title="Homepage of StrapDown.js !">StrapDown.js</a>, then <a href="index.html?pdf">index.html?pdf</a> can be the same HTML page,
but using javascript (like <a href="https://github.com/manuels/texlive.js/">texlive.js</a>)
to autoproduce a PDF version of the page in the background, asking to download it when it is done.</p>
<p><a href="http://manuels.github.io/texlive.js">An example is there</a>. It is so cool I want to use it :)</p>
<h3>Add a "Compile to PDF with TeXLive" button in StrapDown theme</h3>
<p>I added a <a href="http://lbesson.bitbucket.org/squirt/">Squirt</a> button
to the two <a href="http://lbesson.bitbucket.org/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> theme, and therefore I guess
<p>I added a <a href="//lbesson.bitbucket.io/squirt/">Squirt</a> button
to the two <a href="//lbesson.bitbucket.io/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> theme, and therefore I guess
it could be possible to do the same for a "Compile to PDF with TeXLive" button !</p>
<hr />
<h1>About</h1>
@@ -115,7 +115,7 @@ it could be possible to do the same for a "Compile to PDF with TeXLive" button !
<h3>Languages</h3>
<ul>
<li>GNU Bash v4+ for the script,</li>
<li>Markdown and <a href="http://lbesson.bitbucket.org/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> for this page.</li>
<li>Markdown and <a href="//lbesson.bitbucket.io/md/" title="Homepage of StrapDown.js !">StrapDown.js</a> for this page.</li>
</ul>
<h3>License</h3>
<p>This project is released under the <strong>GPLv3 license</strong>, for more details,

View File

@@ -4,9 +4,9 @@
---
[StrapDown.js]: http://lbesson.bitbucket.org/md/ "Homepage of StrapDown.js !"
[index.html]: http://lbesson.bitbucket.org/md/index.html "Explanations on StrapDown.js !"
[StrapDown2PDF]: http://lbesson.bitbucket.org/md/strapdown2pdf "A super cool Bash script !"
[StrapDown.js]: http://lbesson.bitbucket.io/md/ "Homepage of StrapDown.js !"
[index.html]: http://lbesson.bitbucket.io/md/index.html "Explanations on StrapDown.js !"
[StrapDown2PDF]: http://lbesson.bitbucket.io/md/strapdown2pdf "A super cool Bash script !"
# StrapDown2PDF
[StrapDown2PDF][] is a **super cool** Bash script designed to print a *StrapDown*-powered web-page to a PDF document.
@@ -14,7 +14,7 @@
## More details
To be more precise, [StrapDown.js][] allows you to write pretty HTML pages with the Markdown syntax (more details here [index.html][]).
And [StrapDown2PDF][] can be used (on your laptop, from the command line) to transform the document from HTML (writen with Markdown) to PDF (with one intermediate phasis as a LaTeX file).
And [StrapDown2PDF][] can be used (on your laptop, from the command line) to transform the document from HTML (written with Markdown) to PDF (with one intermediate phasis as a LaTeX file).
---
@@ -75,7 +75,7 @@ For instance, the following command will print to PDF every [StrapDown.js][]-fla
**strapdown2pdf** now comes with these options:
+ `-interactive` (shortcut is `-i`) to run [PDFLaTeX](http://perso.crans.org/besson/bin/pdflatex) with the interactive (errorstopmode) mode (default is batchmode),
+ `-quiet` (shortcut is `-q`) to run [strapdown2pdf](http://lbesson.bitbucket.org/md/strapdown2pdf.html) in quiet mode (no output at all, everything is redirected to `/tmp/strapdown2pdf.log`),
+ `-quiet` (shortcut is `-q`) to run [strapdown2pdf](//lbesson.bitbucket.io/md/strapdown2pdf.html) in quiet mode (no output at all, everything is redirected to `/tmp/strapdown2pdf.log`),
+ `-htm` (shortcut is `-m`) to produce a simple HTML file (which do not use StrapDown.js, see [this example strapdown2pdf.htm](./strapdown2pdf.htm)), written to a .htm file. For important document, producing a .htm autonomous file is a good idea,
+ `-discrete` (shortcut is `-d`) to run strapdown2pdf is discrete mode, without adding any creditentials in the produced document,
+ `-s[0-9][0-9]*%` (e.g. `-79%`) to change the default scale used by autotex (default is 85%, '-70%', '-75%' or '-80%' are good also),
@@ -89,7 +89,7 @@ For instance, the following command will print to PDF every [StrapDown.js][]-fla
+ [lunamark](http://jgm.github.io/lunamark/lunamark.1.html) (an awesome *lua*-powered Markdown to LaTeX processor),
+ [autotex](http://perso.crans.org/besson/bin/autotex) (from my web page, or from [bin/autotex](https://bitbucket.org/lbesson/bin/src/master/autotex)).
## Optionnal requirements
## Optional requirements
These external scripts are not really mandatory, you could do without it by modifying a couple of lines of the script's code:
+ [PDFCompress](http://perso.crans.org/besson/bin/PDFCompress) (from my web page, or from [bin/PDFCompress](https://bitbucket.org/lbesson/bin/src/master/PDFCompress)),
@@ -98,7 +98,7 @@ These external scripts are not really mandatory, you could do without it by modi
---
# Future features ?
### A 100% perfect support for embeded LaTeX code
### A 100% perfect support for embedded LaTeX code
These two examples ([3](example3.html) and [4](example4.html)) show how to include [MathJax](http://www.mathjax.org/)
in a *StrapDown*-flavored HTML page to simply embed some *LaTeX* equations.
@@ -124,7 +124,7 @@ to autoproduce a PDF version of the page in the background, asking to download i
[An example is there](http://manuels.github.io/texlive.js). It is so cool I want to use it :)
### Add a "Compile to PDF with TeXLive" button in StrapDown theme
I added a [Squirt](http://lbesson.bitbucket.org/squirt/) button
I added a [Squirt](//lbesson.bitbucket.io/squirt/) button
to the two [StrapDown.js][] theme, and therefore I guess
it could be possible to do the same for a "Compile to PDF with TeXLive" button !

View File

@@ -36,7 +36,7 @@ You can use them, of course, but I won't conclude them, I don't have time for th
[StrapDown.js on GitHub](https://github.com/Naereen/StrapDown.js/tree/master/themes/), and [its demo page on naereen.github.io/](https://naereen.github.io/StrapDown.js/);
### On Bitbucket
[StrapDown.js on Bitbucket](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/themes/), and [its demo page on lbesson.bitbucket.org/](http://lbesson.bitbucket.org/md/).
[StrapDown.js on Bitbucket](https://bitbucket.org/lbesson/lbesson.bitbucket.org/src/master/md/themes/), and [its demo page on lbesson.bitbucket.io/](//lbesson.bitbucket.io/md/).
### Author | Maintainer
[Lilian Besson](http://perso.crans.org/besson/) ([Naereen](https://github.com/Naereen)).