Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #4

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true

indent_style = space
indent_size = 2

[/test/fixtures/*.md]
indent_size = unset
indent_style = unset
11 changes: 11 additions & 0 deletions .mocharc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
reporter: "spec"
recursive: true
full-trace: true
exit: false
slow: 50
timeout: 10000
check-leaks: true
global:
- "app"
spec:
- "test/unit/**/*.test.js"
5 changes: 4 additions & 1 deletion meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ function meta(md, state, start, end, silent) {
return false
}
if (!get(state, start).match(/^---$/)) {
// Fix bug that if no meta is included the meta from the previous run is used
md.meta = {}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed #5


return false
}
const data = []
Expand All @@ -40,7 +43,7 @@ function meta(md, state, start, end, silent) {
// return false
// }

md.meta = YAML.safeLoad(data.join('\n'), {json: true}) || {}
md.meta = YAML.load(data.join('\n'), {json: true}) || {}
state.line = line + 1
return true
}
Loading