Skip to content

Commit

Permalink
Append test to check for YAML inside code blocks
Browse files Browse the repository at this point in the history
This test is expected to fail until the YAML matching functions are
updated to avoid code blocks.
  • Loading branch information
jrblevin committed Feb 11, 2016
1 parent 897d22e commit 90f3f59
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -2317,6 +2317,7 @@ date: 2015-08-13 11:35:25 EST

(ert-deftest test-markdown-font-lock/pandoc-yaml-metadata ()
"Basic yaml metadata tests, with pandoc syntax."
:expected-result :failed
(let ((markdown-use-pandoc-style-yaml-metadata t))
(markdown-test-string
"some text
Expand All @@ -2331,7 +2332,17 @@ more text
---
layout: post
date: 2015-08-13 11:35:25 EST
---"
---
But this is merely a code block
```
---
layout: post
date: 2015-08-13 11:35:25 EST
---
```
"
;; first section
(markdown-test-range-has-face 12 14 markdown-markup-face)
(markdown-test-range-has-face 16 21 markdown-metadata-key-face)
Expand All @@ -2349,7 +2360,11 @@ date: 2015-08-13 11:35:25 EST
(markdown-test-range-has-face 92 95 markdown-metadata-key-face)
(markdown-test-range-has-face 96 96 markdown-markup-face)
(markdown-test-range-has-face 98 120 markdown-metadata-value-face)
(markdown-test-range-has-face 122 124 markdown-markup-face))))
(markdown-test-range-has-face 122 124 markdown-markup-face)
;; third section
(markdown-test-range-has-face 160 162 markdown-markup-face)
(markdown-test-range-has-face 164 213 markdown-pre-face)
(markdown-test-range-has-face 215 217 markdown-markup-face))))

(ert-deftest test-markdown-font-lock/line-break ()
"Basic line break tests."
Expand Down

0 comments on commit 90f3f59

Please sign in to comment.