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
Add delimiters in YAML format #1150
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -410,10 +410,12 @@ Feature: Custom formats | |
""" | ||
And the content of file "2020-08-29_entry-the-first.md" in the cache should be | ||
""" | ||
--- | ||
title: Entry the first. | ||
date: 2020-08-29 11:11 | ||
starred: False | ||
tags: tagone, ipsum, tagtwo | ||
... | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the example in #1065 meant the dots here as a placeholder for content later in the file (not actual dots). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, hey, these dots actually part of the yaml spec. My mistake! |
||
|
||
Lorem @ipsum dolor sit amet, consectetur adipiscing elit. Praesent malesuada | ||
quis est ac dignissim. Aliquam dignissim rutrum pretium. Phasellus pellentesque | ||
|
@@ -458,11 +460,13 @@ Feature: Custom formats | |
""" | ||
And the content of file "2020-09-24_the-third-entry-finally-after-weeks-without-writing.md" in the cache should be | ||
""" | ||
--- | ||
title: The third entry finally after weeks without writing. | ||
date: 2020-09-24 09:14 | ||
starred: False | ||
tags: tagone, tagthree | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is missing the |
||
|
||
... | ||
|
||
I'm so excited about emojis. 💯 🎶 💩 | ||
|
||
Donec semper pellentesque iaculis. Nullam cursus et justo sit amet venenatis. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the example in #1065 meant the dashes here as a placeholder for content earlier in the file (not actual dashes).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, hey, these dashes actually part of the yaml spec. My mistake!
https://yaml.org/spec/1.2/spec.html#id2760395
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the example was supposed to be actual dashes and dots based on Pandoc documentation that was linked in the ticket. https://pandoc.org/MANUAL.html#metadata-blocks
"A YAML metadata block is a valid YAML object, delimited by a line of three hyphens (---) at the top and a line of three hyphens (---) or three dots (...) at the bottom."
Didn't refresh and just saw your second comment. My bad