- Handle single-line and multi-line front-matter values for both TOML and YAML.master
parent
f49af5a420
commit
428afda667
6 changed files with 111 additions and 27 deletions
@ -0,0 +1,11 @@ |
||||
+++ |
||||
title = "Multi-line description with backslashes (TOML)" |
||||
description = """ |
||||
Test to check that backslashes in `\\|` and `\\\\` are correctly escaped |
||||
in the front-matter. |
||||
""" |
||||
tags = ["description", "special-block", "toml", "escaping", "backslashes", "front-matter", "multi-line"] |
||||
draft = false |
||||
+++ |
||||
|
||||
Post content. |
||||
@ -0,0 +1,10 @@ |
||||
--- |
||||
title: "Multi-line description with backslashes (YAML)" |
||||
description: > |
||||
Test to check that backslashes in `\|` and `\\` are correctly escaped |
||||
in the front-matter. |
||||
tags: ["description", "special-block", "yaml", "escaping", "backslashes", "front-matter", "multi-line"] |
||||
draft: false |
||||
--- |
||||
|
||||
Post content. |
||||
@ -0,0 +1,8 @@ |
||||
+++ |
||||
title = "Single-line description with backslashes (TOML)" |
||||
description = "Test to check that backslashes in `\\|` and `\\\\` are correctly escaped." |
||||
tags = ["description", "special-block", "toml", "escaping", "backslashes", "front-matter", "single-line"] |
||||
draft = false |
||||
+++ |
||||
|
||||
Post content. |
||||
@ -0,0 +1,8 @@ |
||||
--- |
||||
title: "Single-line description with backslashes (YAML)" |
||||
description: "Test to check that backslashes in `\\|` and `\\\\` are correctly escaped." |
||||
tags: ["description", "special-block", "yaml", "escaping", "backslashes", "front-matter", "single-line"] |
||||
draft: false |
||||
--- |
||||
|
||||
Post content. |
||||
Loading…
Reference in new issue