Closed wouterj closed 1 year ago
@wouterj what was exactly was your input? Could you move your test into this repository
Good call, see this branch for a failing test case: https://github.com/phpDocumentor/guides/compare/main...wouterj:guides:issue-305
It also seems to indicate that this does work as expected for emphasis, but not for inline literals.
I cherry picked your tests into #385, some of the issues had already been resolved, I resolved one more issues: templates in inline code caused unwanted newlines.
Contrary to body elements, preserving original whitespace is important for inline elements.
Some tests on the Symfony test repository are failing because of
missing spaces before an inlinenew lines after a<code>
element, as well as</code>
tag. (EDIT: missing space before is probably due to a bit too heavy whitespace removal by the tests)An inline newline is converted to a space in HTML, which works out most of the time but not when e.g. you put an inline literal before a final stop or comma (like at the end of the test case below).
See e.g. this test output: