-
Notifications
You must be signed in to change notification settings - Fork 235
quotes not rendered correctly in excerpt #981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the repro - I can replicate on the Statiq examples page too as you noted. Looking into this now. Note to self for context: this corresponds with Statiq Framework 1.0.0-beta.50, which is when all the Statiq.Html modules were moved into core. It's likely some behavior of AngleSharp may have regressed at that point (not in AngleSharp directly, more like in how it's being used). |
This one is getting interesting. I actually can't reproduce with the raw One possibility is that Markdig is actually doing the encoding before the excerpt is even generated. It was updated around the time this problem started. But that doesn't make complete sense either because even if it were the case, I'd expect the entity encoding just to flow right through and be rendered correctly in the browser. It's like it's being double-encoded (or least I'll guess the ampersand is). Still investigating, but the easiest answer that it's the excerpt module appears to be out. It's likely some combination of modules in the Statiq Web pipeline, so I'll need to do some integration testing to get to the bottom of it. More to come. |
So my first hunch was correct, and is at least partially responsible - the So when the document gets to the But then by the time AngleSharp has parsed the HTML content inside Now that I know where the problem is, it should be fairly simple to fix. |
...and now I know why it's happening and changed. This is an unfortunate regression caused by my attempts to deal with an annoying problem with (BTW - I know that was a lot, just wanted to document what's going on in case I ever end up back here) |
When using
@Html.Raw(document.GetString("Excerpt"))
to display excerpt content on an archive page, as in the simple-archive example HTML quotes are displayed as their encoded value,"
.This began with Statiq.Web 1.0.0-beta.35 and continues today with 1.0.0-beta.42.
Repro here: https://github.com/michaelburch/Statiq.Web
Example when using Statiq.Web 1.0.0-beta.34:
Example when using Statiq.Web 1.0.0-beta.35+:
The text was updated successfully, but these errors were encountered: