0.3.0 • Published 5 months ago

remark-lint-haiku v0.3.0

Weekly downloads
12
License
MIT
Repository
github
Last release
5 months ago

remark-lint-haiku

A remark-lint plugin to assert haiku is in 5, 7, 5 syllable pattern. Uses syllable for counting syllables.

Install

npm install remark-lint-haiku

Example

ok.md

Input

# My haiku

```haiku
Parallelogram
I tried to cut from fabric
I cut a rhombus
```

Output

No messages.

not-ok.md

Input

# My haiku

```haiku
Parallelogram
I tried to cut from my fabric
I cut a rhombus
```

Output

3:1-7:4: "I tried to cut from my fabric" (8), it should have 7 syllables.