Last active
February 9, 2022 22:39
-
-
Save opattison/16dd650d276bd2b36e86 to your computer and use it in GitHub Desktop.
How to preserve multiple YAML lines with newlines (for example, to pass through a Markdown filter in Jekyll)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to preserve multiple YAML lines with newlines (for example, to pass through a Markdown filter in Jekyll) | |
# via: http://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines | |
key: |+ | |
Hello. | |
World. | |
# Output if processed with Markdown: | |
# '<p>hello</p><p>world</p>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment