-
-
Notifications
You must be signed in to change notification settings - Fork 811
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
[3.1.x] Markdown rendering regression #5743
Comments
This is prolly related to my changes in how filtering and sanitization is enforced since 3.1.0. Will look into it. |
I can't really reproduce this.. If I make a simple content type, like this:
Both of these will produce proper Markdown output:
What happens on bolt.cm, is because we're doing |
@bobdenotter do we really use the |
And, it worked before, so something broke in the codebase. |
@PhillippOhlandt Yes. we use Excerpt. And I'm trying to thing how "excerpt" could've used correct HTML before. Are you 100% positive it did before? I don't see recent changes in that page: https://github.com/bolt/site-v30/commits/master/public/theme/bolt-v300/news.twig |
Thats the newsitem listing page. But also all newitems were broken and there we shouldn't use |
@PhillippOhlandt Euhm. What? I don't see what's broken? |
When Gawain updated the site to use the latest 3.1.x, all newsitems showed the raw markdown text. |
Oooooooh, right. I think i get it now.. currently in 3.1.0, you need to do |
Ah, that explains it. So it's more our fault because we went the lazy route and didn't use the proper filter? |
@rossriley Can you help out, here? I can't find the place where this magic happens anymore. |
One way to fix this, would be to re-introduce this code to
(see #5611) But, this is probably not the best way going forward. |
Note: What happened on bolt.cm was not related to this issue. That was #5601 instead. |
Quick question: Wouldn't this lead to any theme that "adapted to the new way" would double-parse the markdown? |
@SahAssar Yes, but if they've changed their template this quickly without problems, I'm sure they'll be able to revert that. (I'd think) |
Yeah I'm wondering if this would double parse too... |
It will, but only if somebody themselves added There's really no good way to check for that, so they'll just have to revert that. I think the impact will be low though, because it's not like any actual data is lost. |
Is there a way that the markdown filter could check for markdown source and otherwise pass through? |
Not in a foolproof way. We could "guess" if something is markdown, by checking for HTML tags, but even valid markdown might have embedded tags. So, no. |
Maybe we could wrap the rendered markdown content in a class with a |
That's not unlike what Ross suggested we do in the (near) future. For right now we should just fix the bug we introduced in 3.1.0, and be done with it, imho. |
Bokay. I'm not looped in enough to know if would be BC break. 🙊 😶 |
Noticed today by @PhillippOhlandt that bolt.cm wasn't rendering Markdown as HTML, rather just plain text MD source.
Reverting to 3.0.x-dev or earlier fixes problem.
Details
The text was updated successfully, but these errors were encountered: