/remark-lint-haiku

A remark-lint plugin to assert haiku is in 5, 7, 5 syllable pattern

Primary LanguageJavaScriptMIT LicenseMIT

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.