Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ NEW: Add wordcount_plugin #20

Merged
merged 1 commit into from
May 3, 2021
Merged

✨ NEW: Add wordcount_plugin #20

merged 1 commit into from
May 3, 2021

Conversation

chrisjsewell
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented May 3, 2021

Codecov Report

Merging #20 (8ee0b1c) into master (89da6fc) will decrease coverage by 0.09%.
The diff coverage is 89.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
- Coverage   93.46%   93.37%   -0.10%     
==========================================
  Files          23       24       +1     
  Lines        1179     1208      +29     
==========================================
+ Hits         1102     1128      +26     
- Misses         77       80       +3     
Flag Coverage Δ
pytests 93.37% <89.65%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mdit_py_plugins/wordcount/__init__.py 89.65% <89.65%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89da6fc...8ee0b1c. Read the comment docs.

@chrisjsewell chrisjsewell merged commit c51ed6f into master May 3, 2021
@chrisjsewell chrisjsewell deleted the wordcount branch May 3, 2021 15:38
chrisjsewell added a commit to executablebooks/MyST-Parser that referenced this pull request May 4, 2021
This commit adds the markdown-it-py `wordcount_plugin`
(executablebooks/mdit-py-plugins#20) to the Markdown parser,
and exposes it via the `sub-ref` role
(which also exposes sphinx's `today` substitution).
For example, you can now add to a document:

```markdown
{sub-ref}`today` | {sub-ref}`wordcount-words` words | {sub-ref}`wordcount-minutes` min read
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant