How can I use for example {{ post.date | date: "%H:%M %p - %-d %b %y" }}
in code highlighting?
The only way I have found so far is using {% raw %}{{ post.date | date: "%H:%M %p - %-d %b %y" }}{% endraw %}
. However, then it shows the code snippet as unformatted text rather than with proper inline code highlighting.
If I use
`{{ post.date | date: "%H:%M %p - %-d %b %y" }}`
then the code is rendered instead of shown as code.