Conversation
|
Tests can pass with Then another one fails, So default.js: lib/excerpt.js: so maybe stringify.js should not use default separator too, i am really not sure or test for stringify maybe should use |
|
I'm on vacation for the next few days but can you provide an example of what you did and what you expected to happen vs what did happen? Your fix suggestion seems to be a breaking change at a glance. I'll respond properly at the end of the week. |
|
i am trying to stringify with custom excerpt_separator var source = '---\nDATA: 1\n---\nEXCERPT\n<!-- -->\nBODY\n'
var options = { excerpt: true, excerpt_separator: '<!-- -->' }
var parsed = matter(source, options)
var file = {
excerpt: parsed.excerpt,
content: 'Something new',
data: parsed.data,
}
var string = matter.stringify(file, {}, options)i am confused why stringify uses |
Trying to stringify with same options as parsed failed.
Does this looks like a fix?