-
Notifications
You must be signed in to change notification settings - Fork 117
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
Redirect page is processed as Markdown #114
Comments
I can add that this only happens when the document is not HTML. If the document has an |
When a document has been loaded from a file with a I do not know how to convince Jekyll not to convert a Any ideas, @jekyll/core? |
@pathawks Do you know why HTML is even parsed this way by kramdown? It usually allows HTML to pass through. |
That's a good question; I do not know the answer. |
Should we just document this and live with it? A bit sad but it seems
outside of our hands.
|
The problem is, out of the box, our default template does not work with documents. Could we remove the doctype declaration entirely? |
It's just a Markdown issue, right? Renaming the file to have an Our redirect template is designed to be served as is, without mangling from Markdown or any other processor. Removing the doctype would fix this problem, but there is no guarantee that other problems won't arise with other Markdown processors or future updates to Kramdown. If there is no way to bypass Jekyll's converters entirely, it seems to be that the best solution is to document that users must use |
Duh. Not sure why I didn't think of that. If it has no content, it shouldn't be an issue. |
❤️ these two suggestions. |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
Still outstanding. |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
I think this should be fixed on master after #131. |
@benbalter If it is, would you please ship a quick test? :) |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
@pathawks, maybe you could ship a quick test? ❤️ |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
This issue needs a test to confirm redirect pages are processed as non-munged HTML before it can be closed. |
If you add the If you submit a PR to add a test & merge it, jekyllbot won't see this as open anymore 😜 |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
Steps to reproduce
Create a document (e.g., post)
Add the following YAML front matter:
Expected
Generated redirect output has a valid
<doctype>
tag.Actual:
Doctype tag is HTML entity encoded and appears in the rendered page.
The text was updated successfully, but these errors were encountered: