README without frontmatter does not render HTML headers (Jekyll 4.1.0)
Closed this issue · 1 comments
p3palazzo commented
Describe the bug
Expected behavior: when rendering a README.md
without frontmatter, the plugin should use the default.html
layout and render a complete index.html
with HTML headers
Actual behavior: when rendering a README.md
without frontmatter, an index.html
snippet is generated, containing only the body content without surrounding HTML tags or headers.
Steps to reproduce the behavior
- Gemfile:
source "https://rubygems.org"
gem "jekyll", "~> 4.1"
gem "minima"
group :jekyll_plugins do
gem "jekyll-readme-index"
end
- _config.yml
theme: minima
readme_index:
enabled : true
remove_originals: true
with_frontmatter: false
plugins:
- jekyll-readme-index
- README.md
# Begin with Heading 1, without frontmatter
- Resulting index.html
<h1>Begin with Heading 1, without frontmatter</h1>
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.