Update mocha and jekyll.

This commit is contained in:
Rico Sta. Cruz 2014-10-09 21:23:28 +08:00
parent a78b78fe7c
commit dd94495c8c
4 changed files with 50 additions and 0 deletions

View File

@ -1,3 +1,8 @@
markdown: kramdown
kramdown:
input: GFM
defaults:
- scope:
path: ""
values:
layout: "default"

View File

@ -212,6 +212,12 @@ Helpers and Filters
| replace: "super", "mega"
| replace_first: "super", "mega"
Comments
--------
{% comment %}
{% endcomment %}
Integration
-----------
@ -232,4 +238,5 @@ Integration
* http://jekyllrb.com/docs/templates/
* http://docs.shopify.com/themes/liquid-basics/output
* http://docs.shopify.com/themes/liquid-basics/logic
* https://github.com/Shopify/liquid/wiki/Liquid-for-Designers
{% endraw %}

View File

@ -3,6 +3,20 @@ title: Kramdown
layout: default
---
### Configuration
* `parse_block_html` - process kramdown syntax inside blocks
* `parse_span_html` - process kramdown syntax inside inlines
* `html_to_native` - convert html elements to native elements
{::options parse_block_html="true" /}
For the GFM parser:
* `hard_wrap`
http://kramdown.gettalong.org/parser/gfm.html
### For jekyll (gh-pages)
# _config.yml
@ -40,3 +54,4 @@ layout: default
### References
* http://kramdown.gettalong.org/syntax.html
* http://kramdown.gettalong.org/parser/kramdown.html

23
mocha-html.md Normal file
View File

@ -0,0 +1,23 @@
---
title: Mocha HTML
---
```html
<!doctype html>
<html>
<head>
<title>Mocha</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.rawgit.com/visionmedia/mocha/1.21.4/mocha.css" rel="stylesheet" />
</head>
<body>
<div id="mocha"></div>
<script src="https://cdn.rawgit.com/visionmedia/mocha/1.21.4/mocha.js"></script>
<script src="../index.js"></script>
<script>mocha.setup('bdd')</script>
<script src="tests.js"></script>
<script>mocha.run()</script>
</body>
</html>
```