pandoc/test/command/1279.md
John MacFarlane 547bc2cdf8 Add quotes properly in markdown YAML metadata fields.
This fixes a bug, which caused the writer to look at the LAST
rather than the FIRST character in determining whether quotes
were needed.  So we got spurious quotes in some cases and
didn't get necessary quotes in others.

Closes #7245.  Updated a number of test cases accordingly.
2021-04-25 10:31:33 -07:00

212 B

pandoc -s -t markdown
---
author: 'John Doe[^1]'
date: 2014
title: My Article
---

[^1]: Dept. of This and That
^D
---
author: John Doe[^1]
date: 2014
title: My Article
---

[^1]: Dept. of This and That