DavidAnson / markdownlint

A Node.js style checker and lint tool for Markdown/CommonMark files.
MIT License
4.71k stars 715 forks source link

MD018 error for ID selectors in inline CSS #1268

Closed xuhdev closed 1 week ago

xuhdev commented 2 months ago
# Test

<div id="my-table">
<style>
#my-table table {
    width: 100%;
}
</style>

|                                  | A          |    B             |
| -------------------------------- | :--------: | :--------------: |
|                                  |  C         |   D              |

</div>

This generates the error:

markdownlint-cli2 v0.13.0 (markdownlint v0.34.0)
Finding: a.md
Linting: 1 file(s)
Summary: 1 error(s)
a.md:5:1 MD018/no-missing-space-atx No space after hash on atx style heading [Context: "#my-table table {"]