polkadot-fellows / RFCs

Proposals for change to standards administered by the Fellowship.
https://polkadot-fellows.github.io/RFCs/
Creative Commons Zero v1.0 Universal
109 stars 47 forks source link

mdBook fails to build if there is a link in the RFC title #71

Closed rzadp closed 4 months ago

rzadp commented 5 months ago

If there is a markdown link in the title of an RFC (like here), the mdBook fails to build.

# RFC-0070: X Track for [@kusamanetwork](https://x.com/kusamanetwork)
[WARN] (mdbook::book::summary): Expected a start of a link, actually got Some(Text(Borrowed("[")))
[ERROR] (mdbook::utils): Error: Summary parsing failed for file="<snip>/SUMMARY.md"
[ERROR] (mdbook::utils):    Caused By: There was an error parsing the numbered chapters
[ERROR] (mdbook::utils):    Caused By: There was an error parsing the numbered chapters
[ERROR] (mdbook::utils):    Caused By: failed to parse SUMMARY.md line 9, column 3: The link items for nested chapters must only contain a hyperlink