Skip to content

Commit 1887a29

Browse files
authored
🐛 FIX: wordcount update of minutes (#23)
1 parent ef07cd4 commit 1887a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdit_py_plugins/wordcount/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ def _word_count_rule(state: StateCore) -> None:
5353
data["text"] += text
5454
data.setdefault("words", 0)
5555
data["words"] += words
56-
data["minutes"] = int(round(words / per_minute))
56+
data["minutes"] = int(round(data["words"] / per_minute))
5757

5858
md.core.ruler.push("wordcount", _word_count_rule)

0 commit comments

Comments
 (0)