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.
This commit is contained in:
Simon Gene Gottlieb
2024-07-18 10:29:30 +02:00
committed by Jesse Beder
parent 06c3d1db51
commit 8fbf344aee

View File

@@ -154,6 +154,7 @@ produces
# STL Containers, and Other Overloads # # STL Containers, and Other Overloads #
We overload `operator <<` for `std::vector`, `std::list`, and `std::map`, so you can write stuff like: We overload `operator <<` for `std::vector`, `std::list`, and `std::map`, so you can write stuff like:
{% raw %}
```cpp ```cpp
std::vector <int> squares = {1, 4, 9, 16}; std::vector <int> squares = {1, 4, 9, 16};
@@ -165,6 +166,7 @@ out << YAML::Flow << squares;
out << ages; out << ages;
out << YAML::EndSeq; out << YAML::EndSeq;
``` ```
{% endraw %}
produces produces