From 4eed4cfc21916ba7458c3331ee5094cbf9074ad4 Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Sun, 3 May 2015 11:39:46 -0300 Subject: [PATCH] See #292. Add more Markdown with YAML Front Matter tests --- .../markdown/expected/yaml-front-matter-3.md | 23 ++++++++++++++++++ .../markdown/expected/yaml-front-matter.md | 24 ++++--------------- ...ront-matter.md => _yaml-front-matter-3.md} | 0 .../markdown/original/yaml-front-matter.md | 8 +++++++ src/beautifiers/tidy-markdown.coffee | 2 +- 5 files changed, 36 insertions(+), 21 deletions(-) create mode 100644 examples/simple-jsbeautifyrc/markdown/expected/yaml-front-matter-3.md rename examples/simple-jsbeautifyrc/markdown/original/{_yaml-front-matter.md => _yaml-front-matter-3.md} (100%) create mode 100644 examples/simple-jsbeautifyrc/markdown/original/yaml-front-matter.md diff --git a/examples/simple-jsbeautifyrc/markdown/expected/yaml-front-matter-3.md b/examples/simple-jsbeautifyrc/markdown/expected/yaml-front-matter-3.md new file mode 100644 index 0000000..066d0af --- /dev/null +++ b/examples/simple-jsbeautifyrc/markdown/expected/yaml-front-matter-3.md @@ -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: ! /pattern/gmi +run: ! "function () {\n \n}" +--- + +- item +- item +- item + +1. one +2. two +3. three + diff --git a/examples/simple-jsbeautifyrc/markdown/expected/yaml-front-matter.md b/examples/simple-jsbeautifyrc/markdown/expected/yaml-front-matter.md index 066d0af..75f0737 100644 --- a/examples/simple-jsbeautifyrc/markdown/expected/yaml-front-matter.md +++ b/examples/simple-jsbeautifyrc/markdown/expected/yaml-front-matter.md @@ -1,23 +1,7 @@ --- -title: "This is a title!" -name: Derek Worthen -age: young -contact: null -email: "email@domain.com" -address: some location -pets: - - cat - - dog - - bat -match: ! /pattern/gmi -run: ! "function () {\n \n}" +layout: default +title: this is my title +description: this is my description --- -- item -- item -- item - -1. one -2. two -3. three - + test ing diff --git a/examples/simple-jsbeautifyrc/markdown/original/_yaml-front-matter.md b/examples/simple-jsbeautifyrc/markdown/original/_yaml-front-matter-3.md similarity index 100% rename from examples/simple-jsbeautifyrc/markdown/original/_yaml-front-matter.md rename to examples/simple-jsbeautifyrc/markdown/original/_yaml-front-matter-3.md diff --git a/examples/simple-jsbeautifyrc/markdown/original/yaml-front-matter.md b/examples/simple-jsbeautifyrc/markdown/original/yaml-front-matter.md new file mode 100644 index 0000000..810f02f --- /dev/null +++ b/examples/simple-jsbeautifyrc/markdown/original/yaml-front-matter.md @@ -0,0 +1,8 @@ +--- +layout: default +title: this is my title +description: this is my description +--- + + test + ing \ No newline at end of file diff --git a/src/beautifiers/tidy-markdown.coffee b/src/beautifiers/tidy-markdown.coffee index 90188f5..c21830d 100644 --- a/src/beautifiers/tidy-markdown.coffee +++ b/src/beautifiers/tidy-markdown.coffee @@ -4,7 +4,7 @@ Beautifier = require('./beautifier') module.exports = class TidyMarkdown extends Beautifier name: "Tidy Markdown" options: { - Markdown: true + Markdown: false } beautify: (text, language, options) ->