project-chip / matter-handbook

This is the repoository for the Matter Handbook, content is published at https://handbook.buildwithmatter.com
Creative Commons Attribution 4.0 International
14 stars 12 forks source link

Fix non-breaking spaces in titles #10

Closed JeffersonBledsoe closed 7 months ago

JeffersonBledsoe commented 7 months ago

This should fix the rendering of the changed headings, such as the one shown below:

Screenshot of a sentence from the documentation where all of the text is rendered in the same font. The text shows three # symbols then the word 'Attributes' and then the sentence 'At the last level we’ll find Attributes, which are states held by the node, such as the current level attribute of a level control cluster. Attributes may be defined as different data types such as uint8, strings or arrays.'
CLAassistant commented 7 months ago

CLA assistant check
All committers have signed the CLA.

sammachin commented 7 months ago

Thanks, how did you spot this was the problem?

JeffersonBledsoe commented 7 months ago

GitHub has a similar non-breaking space problem so I already had a feeling that was causing it. I quickly copied the string from the code into a python REPL just to print out the real string to confirm