- Notifications
You must be signed in to change notification settings - Fork215
Support building line blocks with markdown-it hardbreaks#948
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedJul 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## master #948 +/- ##======================================= Coverage 90.14% 90.14% ======================================= Files 24 24 Lines 3418 3441 +23 =======================================+ Hits 3081 3102 +21- Misses 337 339 +2
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. |
08f1afa
tod1990c5
CompareProvides the ability to build docutils' line-block nodes if an inlineelement contains hardbreaks. When a hardbreak is detected as a child ofan inline token, a line-block will be created and child tokens will berendered into a prepared line node. Child nodes are placed into a linenode until the next hardbreak is detected, where a new line node iscreated to hold the next child set. The process repeats until allchildren are processed.Signed-off-by: James Knight <git@jdknight.me>
d1990c5
to1873066
Compare
Provides the ability to build docutils' line-block nodes if an inline element contains hardbreaks. When a hardbreak is detected as a child of an inline token, a line-block will be created and child tokens will be rendered into a prepared line node. Child nodes are placed into a line node until the next hardbreak is detected, where a new line node is created to hold the next child set. The process repeats until all children are processed.
This change is in relation to#877. The change should allow any translator type to handle these line breaks, without requiring the raw directive.
With a document:
Example renderings:
(HTML)

(PDF)

(Confluence)
