Skip to content

mdBook forbids "empty chapters" since 0.1.0 #576

@teiesti

Description

@teiesti

Until version 0.0.28, it was possible to have a SUMMARY.md like this:

# Summary

- [Real chapter](./real.md)
- [Empty chapter]()

While the "real chapter" was rendered and given a link in the summary on the left-hand side, the "empty chapter" was just given an entry in the summary without a link.

This behaviour was very helpful in lots of cases, e.g.

  • when the book was not yet complete or
  • to give the summary additional structure.

Since version 0.1.0, empty chapters are not longer supported. They result in the following error:

$ mdbook build
2018-01-24 16:08:20 [ERROR] (mdbook::utils): Error: Summary parsing failed
2018-01-24 16:08:20 [ERROR] (mdbook::utils): Caused By: There was an error parsing the numbered chapters
2018-01-24 16:08:20 [ERROR] (mdbook::utils): Caused By: Error at line 4, column 16: You can't have an empty link.

Is the new behaviour intended? If yes, is it possible to revert that decision since the old behaviour has practical benefits?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions