frostming / marko

A markdown parser with high extensibility.
https://marko-py.readthedocs.io/en/latest/
MIT License
345 stars 38 forks source link

fix: preserve link references in markdown renderer #172

Closed frostming closed 11 months ago

frostming commented 11 months ago

Signed-off-by: Frost Ming me@frostming.com

Fix #171

codecov[bot] commented 11 months ago

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (b9aae34) 96.62% compared to head (5fac8e1) 96.08%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #172 +/- ## ========================================== - Coverage 96.62% 96.08% -0.54% ========================================== Files 20 20 Lines 1927 1969 +42 Branches 329 340 +11 ========================================== + Hits 1862 1892 +30 - Misses 35 41 +6 - Partials 30 36 +6 ``` | [Flag](https://app.codecov.io/gh/frostming/marko/pull/172/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/frostming/marko/pull/172/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming) | `96.08% <80.00%> (-0.54%)` | :arrow_down: | 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=Frost+Ming#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/frostming/marko/pull/172?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming) | Coverage Δ | | |---|---|---| | [marko/block.py](https://app.codecov.io/gh/frostming/marko/pull/172?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming#diff-bWFya28vYmxvY2sucHk=) | `96.62% <100.00%> (+0.03%)` | :arrow_up: | | [marko/parser.py](https://app.codecov.io/gh/frostming/marko/pull/172?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming#diff-bWFya28vcGFyc2VyLnB5) | `100.00% <ø> (ø)` | | | [marko/ext/pangu.py](https://app.codecov.io/gh/frostming/marko/pull/172?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming#diff-bWFya28vZXh0L3Bhbmd1LnB5) | `85.71% <33.33%> (-14.29%)` | :arrow_down: | | [marko/md\_renderer.py](https://app.codecov.io/gh/frostming/marko/pull/172?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming#diff-bWFya28vbWRfcmVuZGVyZXIucHk=) | `98.29% <89.47%> (-1.71%)` | :arrow_down: | | [marko/ext/codehilite.py](https://app.codecov.io/gh/frostming/marko/pull/172?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming#diff-bWFya28vZXh0L2NvZGVoaWxpdGUucHk=) | `83.72% <76.47%> (-7.71%)` | :arrow_down: | | [marko/ext/footnote.py](https://app.codecov.io/gh/frostming/marko/pull/172?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Frost+Ming#diff-bWFya28vZXh0L2Zvb3Rub3RlLnB5) | `90.78% <75.00%> (-4.53%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.