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

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

Merged
merged 3 commits into from
Mar 31, 2024
Merged

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Mar 31, 2024

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

Required additional mocking of state methods
@chrisjsewell chrisjsewell changed the title ✨ Allow for use of the line-block admonition ✨ Allow for use of the line-block directive Mar 31, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 31, 2024

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 ⚠️
Additional details and impacted files
@@            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 Coverage Δ
pytests 90.07% <81.81%> (-0.06%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrisjsewell chrisjsewell merged commit 79a301e into master Mar 31, 2024
20 checks passed
@chrisjsewell chrisjsewell deleted the line-block branch March 31, 2024 17:13
@chrisjsewell chrisjsewell linked an issue Mar 31, 2024 that may be closed by this pull request
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.

no syntax to create line_block (hardbreak creates paragraph with raw linebreaks) Line braks doesn't work.
2 participants