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

Issue: frontMatter.taxonomy.indentArrays = false has no effect #629

Closed
steelcoder opened this issue Aug 21, 2023 · 1 comment
Closed

Issue: frontMatter.taxonomy.indentArrays = false has no effect #629

steelcoder opened this issue Aug 21, 2023 · 1 comment
Labels

Comments

@steelcoder
Copy link

Describe the bug
Setting the configuration "frontMatter.taxonomy.indentArrays": false in order to remove the indentation of arrays within the front matter does not seem to have the desired effect. When trying to maintain a list without indentation, the software keeps re-indenting the list upon changes to other fields.

To Reproduce
Steps to reproduce the behavior:

  1. Configure the software with "frontMatter.taxonomy.indentArrays": false.
  2. Create or modify a front matter section with a list, e.g.:
keywords:
  - word 1
  - word 2
  1. Change a different field within the same front matter, such as slug.
  2. Observe that the previously unindented list (keywords in this example) gets indented automatically.

Expected behavior
The list under keywords or any other taxonomy should remain unindented when frontMatter.taxonomy.indentArrays is set to false, regardless of changes to other fields.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: macOS
  • Version: 13.5 (Apple Silicon)

Additional context
v.8.4.0

@steelcoder steelcoder added the bug Something isn't working label Aug 21, 2023
@estruyf
Copy link
Owner

estruyf commented Sep 14, 2023

The library we use for parsing YAML uses a new option for this. I just updated it, and you can try it in the latest beta version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants