We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wordcount
1 parent ef07cd4 commit 1887a29Copy full SHA for 1887a29
mdit_py_plugins/wordcount/__init__.py
@@ -53,6 +53,6 @@ def _word_count_rule(state: StateCore) -> None:
53
data["text"] += text
54
data.setdefault("words", 0)
55
data["words"] += words
56
- data["minutes"] = int(round(words / per_minute))
+ data["minutes"] = int(round(data["words"] / per_minute))
57
58
md.core.ruler.push("wordcount", _word_count_rule)
0 commit comments