Use hyphens instead of en dashes for unordered lists #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Unordered lists in the English version of the book were marked with en dashes (–), instead of hyphens (-). Those do not produce real unordered lists but are treaded in Markdown as a single paragraph.
The conversion was done using the following command:
which uses https://github.com/BurntSushi/ripgrep
The problem occurred only in the English version of the book. Other languages already used hyphens. I assume this may be because the app @michaelnozbe is using to write the original version of the book may automatically convert en dashes to hyphens 🙂 It would probably be nice to add a GitHub Action or some other commit check that would verify that
rg '^–' -g '*.md' --files-with-matches
returns no results 😄Pages affected
You can find
–
on these pages to see the incorrectly rendered lists:Example fix
https://nooffice.org/lean/
Before (original):

After:
