mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-03 04:37:45 +00:00
Inline elements with a content body (emph, strong, underline, strike, sub, super, smallcaps, highlight, link, lower, upper, ...) failed with a parse error when the body contained a paragraph break or other block content, since inline handlers parse their bodies with pInlines, which cannot consume paragraph breaks. Example: ``` #emph[hi there] ``` Generalize `fixNesting`, which already hoisted single block children out of inline elements (#11017): the content of an inline element is now split at paragraph breaks and at block children; inline runs are wrapped back in the element, and block children are pulled out with the styling applied to their own contents when they have a body. A pandoc inline cannot span paragraphs, so this is the closest structural rendering; the paragraph structure is preserved. Remove the kludge we used for `#quote`, using `getInlineBody`; it is no longer needed with this general fix.