Opened 7 years ago
Closed 6 years ago
#43104 closed enhancement (fixed)
Add Markdown trailing whitespace rule to `.editorconfig`
Reported by: | netweb | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 5.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
With Gutenberg being merged as part of WordPress 5.0 having WordPress' build tools have parity with that of Gutenberg will be advantageous and one less issue to worry about when merge time comes.
This ticket adds support to .editorconfig
to not trim trailing whitespace
See https://github.com/WordPress/gutenberg/blob/master/.editorconfig#L20-L21
Attachments (1)
Change History (8)
#3
in reply to:
↑ 2
@
7 years ago
Replying to SergeyBiryukov:
Added in https://github.com/WordPress/gutenberg/commit/906bbab2e157d953bd83abcd640899deffd83ef3.
Given that WordPress core does not have any
.md
files, not sure how necessary this is, though don't see any harm either :)
I was being preemptive as Gutenberg includes lots of Markdown files and will be merged as part of WP 5.0 it is one task taken care of now rather than later at merge time 😏
#4
@
7 years ago
- Component changed from Build/Test Tools to General
- Owner set to johnbillion
- Status changed from new to reviewing
This also affects markdown files that you're editing that aren't part of core, for example a readme.md file that lives inside a plugin or theme. The rules for .editorconfig
evidently bubble up in some editors.
Added in https://github.com/WordPress/gutenberg/commit/906bbab2e157d953bd83abcd640899deffd83ef3.
Given that WordPress core does not have any
.md
files, not sure how necessary this is, though don't see any harm either :)