Skip to content

Commit

Permalink
Merge pull request #1273 from EcrituresNumeriques/fix/1249
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot authored Feb 19, 2025
2 parents f12e941 + 8f1871e commit 9f69e34
Show file tree
Hide file tree
Showing 3 changed files with 423 additions and 181 deletions.
95 changes: 0 additions & 95 deletions graphql/helpers/__fixtures__/psp1515.expected.yml

This file was deleted.

13 changes: 12 additions & 1 deletion graphql/helpers/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,18 @@ function reformat(yaml, { id, originalUrl, replaceBibliography = false }) {
}

// dump the result enclosed in "---"
return '---\n' + YAML.dump(doc, { sortKeys }) + '---'
// forcing quotes is better for pandoc
// @see https://github.com/EcrituresNumeriques/stylo/issues/1249
return (
'---\n' +
YAML.dump(doc, {
sortKeys,
noArrayIndent: true,
forceQuotes: true,
quotingType: '"',
}) +
'---\n'
)
}

/**
Expand Down
Loading

0 comments on commit 9f69e34

Please sign in to comment.