preview does weird HTML thing #24

Closed
opened 2018-05-14 15:22:51 +00:00 by raingloom · 2 comments
raingloom commented 2018-05-14 15:22:51 +00:00 (Migrated from github.com)

this is what I see on https://baptiste.gelez.xyz/ :

Making Plume Nicer

<p>I started working on a nicer interface for Plume. I'm not designer so it is not perfect, and there is a lot to do (I don't even know if it behaves correctly on mobile for example), ……

it is a preview for the following post: https://baptiste.gelez.xyz/~/PlumeDevelopment/making-plume-nicer/

this is what I see on https://baptiste.gelez.xyz/ : ``` Making Plume Nicer <p>I started working on a nicer interface for Plume. I'm not designer so it is not perfect, and there is a lot to do (I don't even know if it behaves correctly on mobile for example), …… ``` it is a preview for the following post: https://baptiste.gelez.xyz/~/PlumeDevelopment/making-plume-nicer/
elegaanz commented 2018-05-14 16:42:17 +00:00 (Migrated from github.com)

Yes, actually we have to show the HTML, because if we truncate non-escaped HTML it may result in non closed tags which could completely break the layout. But it is clearly something that needs to be changed.

I think we would need to have subtitle field for each post, which would be displayed when listing them instead of this ugly preview (and on the post page itself of course).

Yes, actually we have to show the HTML, because if we truncate non-escaped HTML it may result in non closed tags which could completely break the layout. But it is clearly something that needs to be changed. I think we would need to have `subtitle` field for each post, which would be displayed when listing them instead of this ugly preview (and on the post page itself of course).

There was a regression introduced on this at some point. I'm gonna search for when it append and try to fix it

Edit:
Bug was introduced on b18aa33c70 , it may come from a change on Tera 0.11.0 :

Escaping happens immediately now instead of waiting for the filters to be called, unless safe is first. If you want the old behaviour you will need to start the a chain of filters with | safe as the first one

(from https://github.com/Keats/tera/blob/master/CHANGELOG.md)

There was a regression introduced on this at some point. I'm gonna search for when it append and try to fix it Edit: Bug was introduced on https://github.com/Plume-org/Plume/commit/b18aa33c70ce3d02464f32be21ad21829b84a9cd , it may come from a change on Tera 0.11.0 : > Escaping happens immediately now instead of waiting for the filters to be called, unless `safe` is first. If you want the old behaviour you will need to start the a chain of filters with `| safe` as the first one (from https://github.com/Keats/tera/blob/master/CHANGELOG.md)
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#24
No description provided.