From 8fbf344aeeedbfdf1f235278dee6a52d86942404 Mon Sep 17 00:00:00 2001 From: Simon Gene Gottlieb Date: Thu, 18 Jul 2024 10:29:30 +0200 Subject: [PATCH] doc, fix: invalid liquid '{{...}}' tags jekyll/liquid got hung up on `{{"Daniel", 26}, {"Jesse", 24}}`. The reason is that `{{...}}` are used as variables that are replaced by there values. In this case we have a YAML object that looks the same. This issue can be fixed by surrounding the block into `{% raw %}...{% endraw %}` tags. --- docs/How-To-Emit-YAML.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/How-To-Emit-YAML.md b/docs/How-To-Emit-YAML.md index f28fcbe..6e6f9f5 100644 --- a/docs/How-To-Emit-YAML.md +++ b/docs/How-To-Emit-YAML.md @@ -154,6 +154,7 @@ produces # STL Containers, and Other Overloads # We overload `operator <<` for `std::vector`, `std::list`, and `std::map`, so you can write stuff like: +{% raw %} ```cpp std::vector squares = {1, 4, 9, 16}; @@ -165,6 +166,7 @@ out << YAML::Flow << squares; out << ages; out << YAML::EndSeq; ``` +{% endraw %} produces