executablebooks / markdown-it-py

Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed. Now in Python!
https://markdown-it-py.readthedocs.io
MIT License
662 stars 68 forks source link

🔧 Add typing of rule functions #283

Closed chrisjsewell closed 1 year ago

chrisjsewell commented 1 year ago

Rule functions signature is specific to the state it acts on.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (64965cf) 95.16% compared to head (c8e0721) 95.17%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #283 +/- ## ======================================= Coverage 95.16% 95.17% ======================================= Files 64 64 Lines 3434 3437 +3 ======================================= + Hits 3268 3271 +3 Misses 166 166 ``` | Flag | Coverage Δ | | |---|---|---| | pytests | `95.17% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/283?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks) | Coverage Δ | | |---|---|---| | [markdown\_it/parser\_block.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/283?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcGFyc2VyX2Jsb2NrLnB5) | `91.83% <100.00%> (+0.17%)` | :arrow_up: | | [markdown\_it/parser\_core.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/283?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcGFyc2VyX2NvcmUucHk=) | `100.00% <100.00%> (ø)` | | | [markdown\_it/parser\_inline.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/283?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcGFyc2VyX2lubGluZS5weQ==) | `95.52% <100.00%> (+0.13%)` | :arrow_up: | | [markdown\_it/ruler.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/283?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcnVsZXIucHk=) | `87.59% <100.00%> (ø)` | | | [markdown\_it/rules\_block/lheading.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/283?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcnVsZXNfYmxvY2svbGhlYWRpbmcucHk=) | `98.14% <100.00%> (-0.04%)` | :arrow_down: | | [markdown\_it/rules\_block/paragraph.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/283?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcnVsZXNfYmxvY2svcGFyYWdyYXBoLnB5) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.