See #292. Add more Markdown with YAML Front Matter tests

This commit is contained in:
Glavin Wiechert 2015-05-03 11:39:46 -03:00
parent 95530edf2d
commit 4eed4cfc21
5 changed files with 36 additions and 21 deletions

View File

@ -0,0 +1,23 @@
---
title: "This is a title!"
name: Derek Worthen
age: young
contact: null
email: "email@domain.com"
address: some location
pets:
- cat
- dog
- bat
match: !<tag:yaml.org,2002:js/regexp> /pattern/gmi
run: !<tag:yaml.org,2002:js/function> "function () {\n \n}"
---
- item
- item
- item
1. one
2. two
3. three

View File

@ -1,23 +1,7 @@
--- ---
title: "This is a title!" layout: default
name: Derek Worthen title: this is my title
age: young description: this is my description
contact: null
email: "email@domain.com"
address: some location
pets:
- cat
- dog
- bat
match: !<tag:yaml.org,2002:js/regexp> /pattern/gmi
run: !<tag:yaml.org,2002:js/function> "function () {\n \n}"
--- ---
- item test ing
- item
- item
1. one
2. two
3. three

View File

@ -0,0 +1,8 @@
---
layout: default
title: this is my title
description: this is my description
---
test
ing

View File

@ -4,7 +4,7 @@ Beautifier = require('./beautifier')
module.exports = class TidyMarkdown extends Beautifier module.exports = class TidyMarkdown extends Beautifier
name: "Tidy Markdown" name: "Tidy Markdown"
options: { options: {
Markdown: true Markdown: false
} }
beautify: (text, language, options) -> beautify: (text, language, options) ->