Hacker Newsnew | past | comments | ask | show | jobs | submit | fuzzypixelz's commentslogin

You're welcome :)

I finally found out what was going wrong here. All angle brackets and other characters were being escaped in other parts of the document, even in <code></code> blocks. Except when it came to code blocks inside <pre></pre> blocks.

For context, I use Zola and Cloudflare pages.

It turns out there is a bug[^0] in Zola 1.40.0 which reads:

> Fix code blocks content not being escaped when not using syntax highlighting

I presume that this is the culprit, as I use an external syntax highlighting library.

Cloudflare Pages has been famously sluggish with updating the Zola version. For reference, 1.14.0 was released in July 2021.

This explains why everything was working fine on my machine™.

Thanks for pointing this out, though I unsure how to work around it without changing my setup.

[^0]: https://github.com/getzola/zola/blob/master/CHANGELOG.md#014...


I'm using Zola and Cloudflare Pages, and it is currently possibly to use ZOLA_VERSION=0.17.1. I thought I had opted into the Pages v2 beta (I remember joining a Discord for this purpose a while ago), but on the actual page the setting is at v1.

You can change this under Settings > Builds & deployments > Build system version. Cheers!


Thanks!

Apparently you can now ZOLA_VERSION to _any_ version you desire in v1 and the build system will install it on demand. I didn't realize that part had changed.

On the other hand, v2 doesn't even have Zola; my builds failed with a "failed to find zola command".

I guess we're now set for life, and will never have to wait for Cloudflare to update the image in order to bump the version. Less headaches for everyone.

Source: https://developers.cloudflare.com/pages/platform/language-su...


For the record, I have noticed two other places where the angle brackets are missing:

    struct AsciiString(Vec);
and

    impl Index> for AsciiString {


This is exactly how I imagine proficient Haskellers spend their time on top of the ivory tower


rvz_told_you_so_linked_list

You sir are a legend.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: