executablebooks / MyST-Parser

An extended commonmark compliant parser, with bridges to docutils/sphinx
https://myst-parser.readthedocs.io
MIT License
708 stars 189 forks source link

✨ Allow for use of the `line-block` directive #900

Closed chrisjsewell closed 3 months ago

chrisjsewell commented 3 months ago

The line-block directive constructs a block where all line breaks (and also initial indentations) are respected.

This was not previously supported, due to a missing State method

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 81.81818% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 90.07%. Comparing base (dfaf6d7) to head (bb79d80).

Files Patch % Lines
myst_parser/mocking.py 81.81% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #900 +/- ## ========================================== - Coverage 90.12% 90.07% -0.06% ========================================== Files 24 24 Lines 3383 3405 +22 ========================================== + Hits 3049 3067 +18 - Misses 334 338 +4 ``` | [Flag](https://app.codecov.io/gh/executablebooks/MyST-Parser/pull/900/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks) | Coverage Δ | | |---|---|---| | [pytests](https://app.codecov.io/gh/executablebooks/MyST-Parser/pull/900/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks) | `90.07% <81.81%> (-0.06%)` | :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=executablebooks#carryforward-flags-in-the-pull-request-comment) to find out more.

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