Skip to content

Commit 8fbf344

Browse files
SGSSGenejbeder
authored andcommitted
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.
1 parent 06c3d1d commit 8fbf344

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/How-To-Emit-YAML.md

+2
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ produces
154154
# STL Containers, and Other Overloads #
155155
We overload `operator <<` for `std::vector`, `std::list`, and `std::map`, so you can write stuff like:
156156

157+
{% raw %}
157158
```cpp
158159
std::vector <int> squares = {1, 4, 9, 16};
159160

@@ -165,6 +166,7 @@ out << YAML::Flow << squares;
165166
out << ages;
166167
out << YAML::EndSeq;
167168
```
169+
{% endraw %}
168170
169171
produces
170172

0 commit comments

Comments
 (0)