executablebooks / mdformat

CommonMark compliant Markdown formatter
https://mdformat.rtfd.io
MIT License
416 stars 45 forks source link

FIX: Error when Unicode space follows heading line #346

Closed hukkin closed 2 years ago

hukkin commented 2 years ago

Fixes https://github.com/executablebooks/mdformat/issues/335

codecov[bot] commented 2 years ago

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (e04980b) compared to base (3d554ac). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #346 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 15 15 Lines 802 803 +1 ========================================= + Hits 802 803 +1 ``` | [Impacted Files](https://codecov.io/gh/executablebooks/mdformat/pull/346?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks) | Coverage Δ | | |---|---|---| | [src/mdformat/\_util.py](https://codecov.io/gh/executablebooks/mdformat/pull/346/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-c3JjL21kZm9ybWF0L191dGlsLnB5) | `100.00% <100.00%> (ø)` | | | [src/mdformat/renderer/\_context.py](https://codecov.io/gh/executablebooks/mdformat/pull/346/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-c3JjL21kZm9ybWF0L3JlbmRlcmVyL19jb250ZXh0LnB5) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.