Skip to content

Commit

Permalink
Add markdownlint with pre-commit (SalamLang#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Mar 2, 2024
1 parent f8e6e3e commit b6a614a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# MD040/fenced-code-language Fenced code blocks should have a language specified
MD040: false
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ repos:
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
name: Run markdownlint
description: Check Markdown files with markdownlint
entry: markdownlint -c .github/linters/.markdown-lint.yml .
types: [markdown]
files: \.md$
37 changes: 20 additions & 17 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,35 @@

### Name

Salam or Sallam or Salaam
`Salam` or `Sallam` or `Salaam`

### Website

https://salamlang.ir
<https://salamlang.ir>

https://salamlaang.ir
<https://salamlaang.ir>

## Keywords

FUNCTION | عملکرد
RETURN | برگشت
BREAK | توقف
CONTINUE | ادامه
PRINT | نمایش
IF | اگر
NULL | پوچ

UNTIL | تا
TRUE | درست
FALSE | غلط
ELSEIF | واگرنه
AND | و
OR | یا
```
FUNCTION | عملکرد
RETURN | برگشت
BREAK | توقف
CONTINUE | ادامه
PRINT | نمایش
IF | اگر
NULL | پوچ
UNTIL | تا
TRUE | درست
FALSE | غلط
ELSEIF | واگرنه
AND | و
OR | یا
```

## Operators

```
و AND
یا OR
=
Expand All @@ -44,6 +46,7 @@ OR | یا
-
*
/
```

## Syntax

Expand Down

0 comments on commit b6a614a

Please sign in to comment.