language-pfm icon indicating copy to clipboard operation
language-pfm copied to clipboard

YAML headers closed with "..." do not end YAML highlighting

Open jpeacock29 opened this issue 7 years ago • 2 comments

Pandoc markdown allows YAML headers to end with either "---" or "...", on a separate line. YAML headers ending with "---" behaive correctly, while those ending in "..." do not end the YAML syntax highlighting and the rest of the document is treated as YAML.

For example,

---
key: value
keys: [values, values]
...

would cause the rest of the document to have YAML syntax highlighting, not just the YAML header. As a work around, one could equivalently use,

---
key: value
keys: [values, values]
---

jpeacock29 avatar Feb 27 '17 05:02 jpeacock29

Sorry for never responding. I am unable to maintain this project (see also #31)

leipert avatar Apr 14 '18 09:04 leipert

No worries, thanks for your eventual response! For others who might find this page, the language-markdown package now offers full support here.

jpeacock29 avatar Nov 25 '19 05:11 jpeacock29