Skip to content

Commit a1a8e86

Browse files
Fix markdownlint violations (#16222)
1 parent 7fe5ffd commit a1a8e86

File tree

11 files changed

+114
-87
lines changed

11 files changed

+114
-87
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ labels: kind:bug
55
type: Bug
66
---
77

8-
## Bug Report
8+
# Bug Report
99

1010
Make sure to review these points before submitting issues - thank you!
1111

.github/ISSUE_TEMPLATE/discussion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ about: I want to start a new discussion about improving the language.
44
labels: status:discussion
55
---
66

7-
## Discussion
7+
# Discussion
88

99
- What aspect of the language would you like to see improved?
1010
- What are the reasons?

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ labels: kind:feature
55
type: Feature
66
---
77

8-
## Feature Request
8+
# Feature Request
99

1010
- Is your feature request related to a problem? Please describe clearly and concisely what is it.
1111
- Describe the feature you would like, optionally illustrated by examples, and how it will solve the above problem.

.github/PULL_REQUEST_TEMPLATE/pull_request_template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Pull Request
2+
13
We thank you for helping improve Crystal. In order to ease the reviewing process, we invite you to read the [guidelines](https://github.com/crystal-lang/crystal/blob/master/CONTRIBUTING.md#making-good-pull-requests) and ask you to consider the following points before submitting a PR:
24

35
1. We prefer to discuss the underlying issue _prior_ to discussing the code. Therefore, we kindly ask you to refer to an existing issue, or an existing discussion in a public space with members of the Core Team (forum, Gitter, Discord, ...). In few cases, we acknowledge that this might not be necessary, for instance when refactoring code or small bug fixes. In this case, the PR must include the same information an issue would have: a clear explanation of the issue, reproducible code, etc.

.markdownlint.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
default: true
2+
3+
heading-style: "setext"
4+
5+
no-inline-html: false
6+
line-length: false
7+
8+
ol-prefix:
9+
style: "ordered"
10+
ul-style:
11+
style: "dash"
12+
ul-indent:
13+
indent: 2
14+
15+
no-blanks-blockquote: false
16+
17+
emphasis-style:
18+
style: "underscore"
19+
strong-style:
20+
style: "asterisk"
21+
22+
no-duplicate-heading:
23+
siblings_only: true
24+
no-bare-urls: false
25+
26+
fenced-code-language: false
27+
commands-show-output: false
28+
29+
first-line-h1:
30+
front_matter_title: "^\\s*(page_)?title\\s*[:=]"
31+
exclude:
32+
.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
33+
34+
no-alt-text: false
35+
36+
hard_tab:
37+
code_blocks: false

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
2626
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities

CONTRIBUTING.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ You can find a list of tasks that we consider suitable for a first time contribu
2525
the [good first issue label](https://github.com/crystal-lang/crystal/contribute).
2626

2727
As you feel more confident, you can keep an eye out for open issues with the following labels:
28-
* [`community:to-research`](https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Acommunity%3Ato-research): Help needed on **researching and investigating** the issue at hand; could be from going through an RFC to figure out how something _should_ be working, to go through details on a C-library we'd like to bind.
29-
* [`community:to-design`](https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Acommunity%3Ato-design): As an issue has been accepted, we are looking for **ideas on how it could be implemented**, this is, a high-level design for the feature at hand.
30-
* [`community:to-implement`](https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Acommunity%3Ato-implement): After a design has been agreed upon, the remaining task is to actually **code** it and send a PR!
31-
* [`community:to-document`](https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Acommunity%3Ato-document): Similar to the one above, but this one is for those awesome devs that are happy to **contribute with documentation** instead of just code.
28+
29+
- [`community:to-research`](https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Acommunity%3Ato-research): Help needed on **researching and investigating** the issue at hand; could be from going through an RFC to figure out how something _should_ be working, to go through details on a C-library we'd like to bind.
30+
- [`community:to-design`](https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Acommunity%3Ato-design): As an issue has been accepted, we are looking for **ideas on how it could be implemented**, this is, a high-level design for the feature at hand.
31+
- [`community:to-implement`](https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Acommunity%3Ato-implement): After a design has been agreed upon, the remaining task is to actually **code** it and send a PR!
32+
- [`community:to-document`](https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Acommunity%3Ato-document): Similar to the one above, but this one is for those awesome devs that are happy to **contribute with documentation** instead of just code.
3233

3334
Furthermore, these are the most important general topics in need right now, so if you are interested open an issue to start working on it:
3435

35-
* Documenting the language
36-
* Documenting the standard library
37-
* Adding missing bits of the standard library, and/or improving its performance
36+
- Documenting the language
37+
- Documenting the standard library
38+
- Adding missing bits of the standard library, and/or improving its performance
3839

3940
### Labels
4041

@@ -64,25 +65,25 @@ Topic encompasses the broad aspect of the language that the issue refers to: cou
6465

6566
Status labels attempt to capture the lifecycle of an issue:
6667

67-
* A detailed proposal on a feature is marked as `draft`, while a more general argument is usually labelled as `discussion` until a consensus is achieved.
68+
- A detailed proposal on a feature is marked as `draft`, while a more general argument is usually labelled as `discussion` until a consensus is achieved.
6869

69-
* An issue is `accepted` when it describes a feature or bugfix that a core team member has agreed to have added to the language, so as soon as a design is discussed (if needed), it's safe to start working on a pull request.
70+
- An issue is `accepted` when it describes a feature or bugfix that a core team member has agreed to have added to the language, so as soon as a design is discussed (if needed), it's safe to start working on a pull request.
7071

71-
* Bug reports are marked as `needs-more-info`, where the author is requested to provide the info required; note that the issue may be closed after some time if it is not supplied.
72+
- Bug reports are marked as `needs-more-info`, where the author is requested to provide the info required; note that the issue may be closed after some time if it is not supplied.
7273

73-
* Issues that are batched in an epic to be worked on as a group are typically marked as `deferred`, while low-prio issues or tasks far away in the roadmap are marked as `someday`.
74+
- Issues that are batched in an epic to be worked on as a group are typically marked as `deferred`, while low-prio issues or tasks far away in the roadmap are marked as `someday`.
7475

75-
* Closed issues are marked as `implemented`, `invalid`, `duplicate` or `wontfix`, depending on their resolution.
76+
- Closed issues are marked as `implemented`, `invalid`, `duplicate` or `wontfix`, depending on their resolution.
7677

77-
## Contributing to...
78+
## Contributing
7879

7980
### The documentation
8081

81-
The language reference is available at https://crystal-lang.org/reference/.
82+
The language reference is available at <https://crystal-lang.org/reference/>.
8283
See the repository at [crystal-lang/crystal-book](https://github.com/crystal-lang/crystal-book) for contributing to it.
8384

8485
The [standard library documentation](https://crystal-lang.org/api/) is on the code itself, in this repository.
85-
There is a version updated with every push to the master branch [here](https://crystal-lang.org/api/master/).
86+
The [`master` version](https://crystal-lang.org/api/master/) is updated with every push to the master branch.
8687
It uses a subset of [Markdown](http://daringfireball.net/projects/markdown/). You can [use Ruby as a source
8788
of inspiration](https://twitter.com/yukihiro_matz/status/549317901002342400) whenever applicable. To generate
8889
the docs execute `make docs`. Please follow the guidelines described in our
@@ -92,8 +93,8 @@ Additionally, all official documentation can be found on [the Crystal website](h
9293

9394
### The standard library
9495

95-
1. Fork it ( https://github.com/crystal-lang/crystal/fork )
96-
2. Clone it
96+
1. [Fork](https://github.com/crystal-lang/crystal/fork) and checkout the
97+
repository <https://github.com/crystal-lang/crystal/>
9798

9899
Once in the cloned directory, and once you [installed Crystal](https://crystal-lang.org/install/),
99100
you can execute `bin/crystal` instead of `crystal`. This is a wrapper that will use the cloned repository
@@ -206,13 +207,13 @@ details of the pull request process. For non-trivial changes, the merge commit s
206207

207208
1. Do not directly commit to the `master` branch. Always create a feature branch and pull request.
208209
2. Feature branches should typically be created in your fork. The main repo should only contain essential branches.
209-
* CI changes affecting circle CI only run for branches on the main repo. They should be prefixed `ci/` to trigger a maintenance release.
210-
* Long-running feature branches that accept contributions must be pushed to the main repo in order to allow PRs targeting that branch.
210+
- CI changes affecting circle CI only run for branches on the main repo. They should be prefixed `ci/` to trigger a maintenance release.
211+
- Long-running feature branches that accept contributions must be pushed to the main repo in order to allow PRs targeting that branch.
211212

212213
## Git pre-commit hook
213214

214215
Code submitted to this repository should be formatted according to `crystal tool format`.
215-
A pre-commit hook can be installed into the local git repo to ensure the formatter validates every commit: https://github.com/crystal-lang/crystal/blob/master/scripts/git/pre-commit
216+
A pre-commit hook can be installed into the local git repo to ensure the formatter validates every commit: <https://github.com/crystal-lang/crystal/blob/master/scripts/git/pre-commit>
216217

217218
Install the pre-commit hook:
218219

NOTICE.md

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,39 @@ otherwise:
1010
Please see [REUSE.toml](REUSE.toml) and [LICENSE](LICENSE) for additional
1111
copyright and licensing information.
1212

13-
* This repository includes vendored libraries (shards) in `/lib/` which have
14-
their own licenses. See [REUSE.toml](REUSE.toml) for details.
15-
* Crystal playground includes vendored libraries with their own licenses. See
16-
[src/compiler/crystal/tools/playground/public/vendor/REUSE.toml](src/compiler/crystal/tools/playground/public/vendor/REUSE.toml)
17-
for details.
13+
- This repository includes vendored libraries (shards) in `/lib/` which have
14+
their own licenses. See [REUSE.toml](REUSE.toml) for details.
15+
- Crystal playground includes vendored libraries with their own licenses. See
16+
[src/compiler/crystal/tools/playground/public/vendor/REUSE.toml](src/compiler/crystal/tools/playground/public/vendor/REUSE.toml)
17+
for details.
1818

1919
## External libraries information
2020

2121
Crystal compiler links the following libraries, which have their own license:
2222

23-
* [LLVM][] - [Apache-2.0 with LLVM exceptions][]
24-
* [PCRE or PCRE2][] - [BSD-3][]
25-
* [libevent2][] - [BSD-3][]
26-
* [libiconv][] - [LGPLv3][]
27-
* [bdwgc][] - [MIT][]
23+
- [LLVM][] - [Apache-2.0 with LLVM exceptions][]
24+
- [PCRE or PCRE2][] - [BSD-3][]
25+
- [libevent2][] - [BSD-3][]
26+
- [libiconv][] - [LGPLv3][]
27+
- [bdwgc][] - [MIT][]
2828

2929
Crystal compiler calls the following tools as external process on compiling, which have their own license:
3030

31-
* [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) - [GPLv3]
31+
- [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) - [GPLv3]
3232

3333
Crystal standard library uses the following libraries, which have their own licenses:
3434

35-
* [LLVM][] - [Apache-2.0 with LLVM exceptions][]
36-
* [PCRE or PCRE2][] - [BSD-3][]
37-
* [libevent2][] - [BSD-3][]
38-
* [libiconv][] - [LGPLv3][]
39-
* [bdwgc][] - [MIT][]
40-
* [Zlib][] - [Zlib][Zlib-license]
41-
* [OpenSSL][] - [Apache-2.0][]
42-
* [Libxml2][] - [MIT][]
43-
* [LibYAML][] - [MIT][]
44-
* [readline][] - [GPLv3][]
45-
* [GMP][] - [LGPLv3][]
35+
- [LLVM][] - [Apache-2.0 with LLVM exceptions][]
36+
- [PCRE or PCRE2][] - [BSD-3][]
37+
- [libevent2][] - [BSD-3][]
38+
- [libiconv][] - [LGPLv3][]
39+
- [bdwgc][] - [MIT][]
40+
- [Zlib][] - [Zlib][Zlib-license]
41+
- [OpenSSL][] - [Apache-2.0][]
42+
- [Libxml2][] - [MIT][]
43+
- [LibYAML][] - [MIT][]
44+
- [readline][] - [GPLv3][]
45+
- [GMP][] - [LGPLv3][]
4646

4747
<!-- licenses -->
4848
[Apache-2.0]: https://www.openssl.org/source/apache-license-2.0.txt
@@ -51,21 +51,15 @@ Crystal standard library uses the following libraries, which have their own lice
5151
[GPLv3]: https://www.gnu.org/licenses/gpl-3.0.en.html
5252
[LGPLv3]: https://www.gnu.org/licenses/lgpl-3.0.en.html
5353
[MIT]: https://opensource.org/licenses/MIT
54-
[OFL-1.1]: https://opensource.org/licenses/OFL-1.1
5554
[Zlib-license]: https://opensource.org/licenses/Zlib
5655
<!-- libraries -->
57-
[ansi\_up]: https://github.com/drudru/ansi\_up
5856
[bdwgc]: http://www.hboehm.info/gc/
59-
[CodeMirror]: https://codemirror.net/
60-
[jQuery]: https://jquery.com/
6157
[GMP]: https://gmplib.org/
6258
[libevent2]: http://libevent.org/
6359
[libiconv]: https://www.gnu.org/software/libiconv/
6460
[Libxml2]: http://xmlsoft.org/
6561
[LibYAML]: http://pyyaml.org/wiki/LibYAML
6662
[LLVM]: http://llvm.org/
67-
[Materialize]: http://materializecss.com/
68-
[Octicons]: https://octicons.github.com/
6963
[OpenSSL]: https://www.openssl.org/
7064
[PCRE or PCRE2]: http://pcre.org/
7165
[readline]: https://tiswww.case.edu/php/chet/readline/rltop.html

README.md

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414

1515
Crystal is a programming language with the following goals:
1616

17-
* Have a syntax similar to Ruby (but compatibility with it is not a goal)
18-
* Statically type-checked but without having to specify the type of variables or method arguments.
19-
* Be able to call C code by writing bindings to it in Crystal.
20-
* Have compile-time evaluation and generation of code, to avoid boilerplate code.
21-
* Compile to efficient native code.
17+
- Have a syntax similar to Ruby (but compatibility with it is not a goal)
18+
- Statically type-checked but without having to specify the type of variables or method arguments.
19+
- Be able to call C code by writing bindings to it in Crystal.
20+
- Have compile-time evaluation and generation of code, to avoid boilerplate code.
21+
- Compile to efficient native code.
2222

23-
Why?
24-
----
23+
## Why?
2524

2625
We love Ruby's efficiency for writing code.
2726

@@ -35,37 +34,31 @@ We want full OOP.
3534

3635
Oh, and we don't want to write C code to make the code run faster.
3736

38-
Project Status
39-
--------------
37+
## Project Status
4038

4139
Within a major version, language features won't be removed or changed in any way that could prevent a Crystal program written with that version from compiling and working. The built-in standard library might be enriched, but it will always be done with backwards compatibility in mind.
4240

4341
Development of the Crystal language is possible thanks to the community's effort and the continued support of [84codes](https://www.84codes.com/) and every other [sponsor](https://crystal-lang.org/sponsors).
4442

45-
Installing
46-
----------
43+
## Installing
4744

4845
[Follow these installation instructions](https://crystal-lang.org/install)
4946

50-
Try it online
51-
-------------
47+
## Try it online
5248

5349
[play.crystal-lang.org](https://play.crystal-lang.org/)
5450

55-
Documentation
56-
-------------
51+
## Documentation
5752

58-
* [Language Reference](http://crystal-lang.org/reference)
59-
* [Standard library API](https://crystal-lang.org/api)
60-
* [Roadmap](https://github.com/crystal-lang/crystal/wiki/Roadmap)
53+
- [Language Reference](http://crystal-lang.org/reference)
54+
- [Standard library API](https://crystal-lang.org/api)
55+
- [Roadmap](https://github.com/crystal-lang/crystal/wiki/Roadmap)
6156

62-
Community
63-
---------
57+
## Community
6458

6559
Have any questions or suggestions? Ask on the [Crystal Forum](https://forum.crystal-lang.org), on our [Gitter channel](https://gitter.im/crystal-lang/crystal) or IRC channel [#crystal-lang](https://web.libera.chat/#crystal-lang) at irc.libera.chat, or on Stack Overflow under the [crystal-lang](http://stackoverflow.com/questions/tagged/crystal-lang) tag. There is also an archived [Google Group](https://groups.google.com/forum/?fromgroups#!forum/crystal-lang).
6660

67-
Contributing
68-
------------
61+
## Contributing
6962

7063
The Crystal repository is hosted at [crystal-lang/crystal](https://github.com/crystal-lang/crystal) on GitHub.
7164

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Reporting a Vulnerability
1+
# Reporting a Vulnerability
22

3-
Should you find any security-related issue, please *do not share them openly* in
3+
Should you find any security-related issue, please _do not share them openly_ in
44
the issue tracker. We have a dedicated mailbox where we keep track of them:
55

66

0 commit comments

Comments
 (0)