Skip to content

Commit

Permalink
fix: fix YAML syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Jul 29, 2021
1 parent aee5424 commit 63cbb4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion citation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13869,6 +13869,11 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const schema = _jsYaml.default.DEFAULT_SCHEMA
schema.compiledTypeMap.scalar['tag:yaml.org,2002:timestamp'].represent = function (object) {
return object.toISOString().split('T')[0]
}

_core.plugins.add('@else', {
input: {
'@else/yaml': {
Expand Down Expand Up @@ -13915,7 +13920,7 @@ _core.plugins.add('@cff', {
if (options.type === 'object') {
return output;
} else {
return _jsYaml.default.dump(output);
return _jsYaml.default.dump(output, { forceQuotes: true });
}
}

Expand Down

0 comments on commit 63cbb4d

Please sign in to comment.