Version v0.6 : add a ?pedantic=y option.

This commit is contained in:
Lilian Besson
2015-12-13 12:45:14 +01:00
parent 6d70e7ad64
commit 287d2540c0
5 changed files with 19 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>StrapDown.js</title></head><body><xmp>
# StrapDown.js
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>lbesson.bitbucket.org/md/</title></head><body><xmp>
# StrapDown.js is on [http://lbesson.bitbucket.org/md/](http://lbesson.bitbucket.org/md/)
[StrapDown.js](http://lbesson.bitbucket.org/md/index.html) is an awesome web script to write nice-looking webpages in pure Markdown, with no server side compilation.
### More details
@@ -33,7 +33,7 @@ More details on [http://lbesson.bitbucket.org/md/index.html](http://lbesson.bitb
----
### And as any web-based document, a StrapDown.js powered HTML page can include any Javascript script, like this example which shows a research bar for a table:
### And as any web-based document, a StrapDown.js powered HTML page can include any Javascript script, like this example which shows a research bar for a table:
![Sixth demo](demo6.png "First lines of the index.html page")
----
@@ -46,7 +46,9 @@ More details on [http://lbesson.bitbucket.org/md/index.html](http://lbesson.bitb
- [HTML 5](https://en.wikipedia.org/wiki/HTML) and [CSS 3](https://en.wikipedia.org/wiki/Cascading_Style_Sheets).
### License
This project is released under the **MIT license**, for more details,
take a look at the [LICENSE](http://lbesson.mit-license.org/) file in the source.
This project is released under the **GPLv3 license**, for more details,
take a look at the [LICENSE](http://besson.qc.to/LICENSE.html) file in the source.
*Basically, that allow you to use all or part of the project for you own business.*
</xmp><script type="text/javascript" src="http://lbesson.bitbucket.org/md/strapdown.min.js"></script></body></html>

View File

@@ -32,7 +32,7 @@ More details on [http://lbesson.bitbucket.org/md/index.html](http://lbesson.bitb
----
### And as any web-based document, a StrapDown.js powered HTML page can include any Javascript script, like this example which shows a research bar for a table:
### And as any web-based document, a StrapDown.js powered HTML page can include any Javascript script, like this example which shows a research bar for a table:
![Sixth demo](demo6.png "First lines of the index.html page")
----
@@ -45,7 +45,7 @@ More details on [http://lbesson.bitbucket.org/md/index.html](http://lbesson.bitb
- [HTML 5](https://en.wikipedia.org/wiki/HTML) and [CSS 3](https://en.wikipedia.org/wiki/Cascading_Style_Sheets).
### License
This project is released under the **MIT license**, for more details,
take a look at the [LICENSE](http://lbesson.mit-license.org/) file in the source.
This project is released under the **GPLv3 license**, for more details,
take a look at the [LICENSE](http://besson.qc.to/LICENSE.html) file in the source.
[![Analytics](https://ga-beacon.appspot.com/UA-38514290-17/github.com/Naereen/StrapDown.js/README.md?pixel)](https://github.com/Naereen/StrapDown.js)
*Basically, that allow you to use all or part of the project for you own business.*

View File

@@ -1,8 +1,9 @@
/**
* StrapDown.js - an on-the-fly markdown parser
* Copyright (C) 2014, Lilian Besson. (GPLv3 Licensed)
* Copyright (C) 2015, Lilian Besson. (GPLv3 Licensed)
* http://lbesson.bitbucket.org/md/
* Version: 0.5
* https://GitHub.com/Naereen/StrapDown.js
* Version: 0.6
*/
/**
@@ -448,7 +449,7 @@ 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.5, '
+ '<a title="http://lbo.k.vu/md" href="http://lbesson.bitbucket.org/md/index.html?src=strapdown.js">StrapDown.js</a> v0.6, '
+ '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" '
@@ -475,7 +476,8 @@ var PR=win['PR']={'createSimpleLexer':createSimpleLexer,'registerLangHandler':re
gfm: true, // Type: boolean Default: true. Enable [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown).
tables: true, // Type: boolean Default: true. Enable GFM tables. This option requires the gfm option to be true.
smartypants: true,
pedantic: true // See https://github.com/chuckhoupt/strapdown/commit/1a090729fb717059be0689aa65025de6de67b3cd
pedantic: (queryOrigin['pedantic'] || false)
// See https://github.com/chuckhoupt/strapdown/commit/1a090729fb717059be0689aa65025de6de67b3cd
});
// Generate Markdown
var html = marked(markdown);

2
strapdown.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -2060,7 +2060,7 @@ var prettyPrint;
gfm : true,
tables : true,
smartypants : true,
pedantic: true
pedantic: (fmt['pedantic'] || false)
});
var html = marked(markdown);
document.getElementById("content").innerHTML = html;