Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MD018 error for ID selectors in inline CSS #1268

Closed
xuhdev opened this issue Jun 22, 2024 · 0 comments · Fixed by #1299
Closed

MD018 error for ID selectors in inline CSS #1268

xuhdev opened this issue Jun 22, 2024 · 0 comments · Fixed by #1299

Comments

@xuhdev
Copy link

xuhdev commented Jun 22, 2024

# 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 {"]
@xuhdev xuhdev changed the title M018 error for inline HTML M018 error for inline CSS Jun 22, 2024
@xuhdev xuhdev changed the title M018 error for inline CSS M018 error for ID selectors in inline CSS Jun 22, 2024
@xuhdev xuhdev changed the title M018 error for ID selectors in inline CSS MD018 error for ID selectors in inline CSS Jun 22, 2024
@DavidAnson DavidAnson added the bug label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants