Escaping the {{ }} in markdown for Jekyll
I just realised that in one of my previous posts, the code I had for ${{ secrets.GH_TOKEN }}
became just $
.
After a bit of research, I found out that it is due to the fact that {{ }}
is used for variable interpolation in liquid, and liquid is used by Jekyll.
So every time I need to use the {{ }}
in my code examples, I need to add the {
%
raw
%
}
and {
%
endraw
%
}
around it to escape the values.